Package org.apache.wicket.feedback

Examples of org.apache.wicket.feedback.FeedbackMessage


    }
    final StringBuffer buf = new StringBuffer();
    boolean first = true;
    for (final FormComponent< ? > formComponent : allFormComponents) {
      if (formComponent.hasFeedbackMessage() == true) {
        final FeedbackMessage feedbackMessage = formComponent.getFeedbackMessages().first();
        if (markAsRendered == true) {
          feedbackMessage.markRendered();
        }
        first = StringHelper.append(buf, first, feedbackMessage.getMessage().toString(), "\n");
      }
    }
    return buf.toString();
  }
View Full Code Here


      protected void onComponentTag(ComponentTag tag) {
        super.onComponentTag(tag);
       
        if (isValid() == false) {
          tag.put("class", "imxt-invalid");
          FeedbackMessage message = getFeedbackMessage();
          if (message != null) {
            tag.put("title", message.getMessage().toString());
          }
        }
      }
    };
    tf.setOutputMarkupId(true);
View Full Code Here

  {
    List msgs = getCurrentMessages();

    for (Iterator i = msgs.iterator(); i.hasNext();)
    {
      FeedbackMessage msg = (FeedbackMessage)i.next();
      if (msg.isLevel(level))
      {
        return true;
      }
    }
View Full Code Here

    /**
     * @see org.apache.wicket.markup.html.list.ListView#populateItem(org.apache.wicket.markup.html.list.ListItem)
     */
    protected void populateItem(final ListItem listItem)
    {
      final FeedbackMessage message = (FeedbackMessage)listItem.getModelObject();
      message.markRendered();
      final IModel replacementModel = new Model()
      {
        private static final long serialVersionUID = 1L;

        /**
 
View Full Code Here

      super.onComponentTag(tag);

      if (!isValid())
      {
        tag.put("class", "imxt-invalid");
        FeedbackMessage message = getFeedbackMessages().first();
        if (message != null)
        {
          tag.put("title", message.getMessage().toString());
        }
      }
    }
View Full Code Here

        super.onComponentTag(tag);

        if (isValid() == false)
        {
          tag.put("class", "imxt-invalid");
          FeedbackMessage message = getFeedbackMessages().first(FeedbackMessage.ERROR);
          if (message != null)
          {
            tag.put("title", message.getMessage().toString());
          }
        }
      }
    };
    tf.setOutputMarkupId(true);
View Full Code Here

      super.onComponentTag(tag);
     
      if (!isValid())
      {
        tag.put("class", "imxt-invalid");
        FeedbackMessage message = getFeedbackMessages().first();
        if (message != null)
        {
          tag.put("title", message.getMessage().toString());
        }
      }
    }
View Full Code Here

      super.onComponentTag(tag);
     
      if (!isValid())
      {
        tag.put("class", "imxt-invalid");
        FeedbackMessage message = getFeedbackMessages().first();
        if (message != null)
        { tag.put("title", message.getMessage().toString()); }
      }
    }
View Full Code Here

    tester.assertNoErrorMessage();

    addParams();
    page.getForm().setMaxSize(Bytes.kilobytes(1));
    tester.executeBehavior(behavior);
    FeedbackMessage errorMessage = page.getField().getFeedbackMessages().first(FeedbackMessage.ERROR);
    Assert.assertNotNull(errorMessage);
  }
View Full Code Here

    }

    @Override
    protected void populateItem(final ListItem<FeedbackMessage> listItem)
    {
      final FeedbackMessage message = listItem.getModelObject();
      message.markRendered();
      final IModel<String> replacementModel = new Model<String>()
      {
        private static final long serialVersionUID = 1L;

        /**
 
View Full Code Here

TOP

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

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.