Package org.apache.wicket.feedback

Examples of org.apache.wicket.feedback.FeedbackCollector


   * @return <code>List</code> of messages (as <code>String</code>s)
   * @see FeedbackMessage
   */
  public List<Serializable> getMessages(final int level)
  {
    List<FeedbackMessage> allMessages = new FeedbackCollector(getLastRenderedPage()).collect(new IFeedbackMessageFilter()
    {

      @Override
      public boolean accept(FeedbackMessage message)
      {
View Full Code Here


   * https://issues.apache.org/jira/browse/WICKET-5165
   */
  private void bindSessionIfNeeded()
  {
    // check for session feedback messages only
    FeedbackCollector collector = new FeedbackCollector();
    List<FeedbackMessage> feedbackMessages = collector.collect();
    if (feedbackMessages.size() > 0)
    {
      Session.get().bind();
    }
  }
View Full Code Here

   * https://issues.apache.org/jira/browse/WICKET-5165
   */
  private void bindSessionIfNeeded()
  {
    // check for session feedback messages only
    FeedbackCollector collector = new FeedbackCollector();
    List<FeedbackMessage> feedbackMessages = collector.collect();
    if (feedbackMessages.size() > 0)
    {
      Session.get().bind();
    }
  }
View Full Code Here

   * @return <code>List</code> of messages (as <code>String</code>s)
   * @see FeedbackMessage
   */
  public List<Serializable> getMessages(final int level)
  {
    List<FeedbackMessage> allMessages = new FeedbackCollector(getLastRenderedPage()).collect(new IFeedbackMessageFilter()
    {

      @Override
      public boolean accept(FeedbackMessage message)
      {
View Full Code Here

   * @return <code>List</code> of messages (as <code>String</code>s)
   * @see FeedbackMessage
   */
  public List<Serializable> getMessages(final int level)
  {
    List<FeedbackMessage> allMessages = new FeedbackCollector(getLastRenderedPage()).collect(new IFeedbackMessageFilter()
    {

      @Override
      public boolean accept(FeedbackMessage message)
      {
View Full Code Here

   * @return <code>List</code> of messages (as <code>String</code>s)
   * @see FeedbackMessage
   */
  public List<Serializable> getMessages(final int level)
  {
    List<FeedbackMessage> allMessages = new FeedbackCollector(getLastRenderedPage()).collect(new IFeedbackMessageFilter()
    {

      @Override
      public boolean accept(FeedbackMessage message)
      {
View Full Code Here

   * @return <code>List</code> of messages (as <code>String</code>s)
   * @see FeedbackMessage
   */
  public List<Serializable> getMessages(final int level)
  {
    List<FeedbackMessage> allMessages = new FeedbackCollector(getLastRenderedPage()).collect(new IFeedbackMessageFilter()
    {

      @Override
      public boolean accept(FeedbackMessage message)
      {
View Full Code Here

   * @return <code>List</code> of messages (as <code>String</code>s)
   * @see FeedbackMessage
   */
  public List<FeedbackMessage> getFeedbackMessages(final IFeedbackMessageFilter filter)
  {
    return new FeedbackCollector(getLastRenderedPage()).collect(filter);
  }
View Full Code Here

   * https://issues.apache.org/jira/browse/WICKET-5165
   */
  private void bindSessionIfNeeded()
  {
    // check for session feedback messages only
    FeedbackCollector collector = new FeedbackCollector();
    List<FeedbackMessage> feedbackMessages = collector.collect();
    if (feedbackMessages.size() > 0)
    {
      Session.get().bind();
    }
  }
View Full Code Here

  @Override
  protected void onBeforeRender()
  {
    super.onBeforeRender();
    // Get the messages for the current page
    visible = new FeedbackCollector(getPage()).collect(getMessagesFilter()).size() > 0;
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.feedback.FeedbackCollector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.