Package org.apache.wicket.feedback

Examples of org.apache.wicket.feedback.FeedbackMessage


        {
          return getCSSClass(listItem.getModelObject());
        }
      };

      final FeedbackMessage message = listItem.getModelObject();
      message.markRendered();
      final Component label = newMessageDisplayComponent("message", message);
      final AttributeModifier levelModifier = AttributeModifier.append("class", replacementModel);
      label.add(levelModifier);
      listItem.add(levelModifier);
      listItem.add(label);
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

    Session session = Session.get();
    session.info("Message");
    session.info("Not rendered");
    FeedbackMessages feedbackMessages = session.getFeedbackMessages();
    Iterator<FeedbackMessage> iterator = feedbackMessages.iterator();
    FeedbackMessage message = iterator.next();
    message.markRendered();
    feedbackMessages.clear(RENDERED_MESSAGES);
    assertEquals(1, feedbackMessages.size());
    message = iterator.next();
    message.markRendered();
    feedbackMessages.clear(RENDERED_MESSAGES);
    assertEquals(0, feedbackMessages.size());
  }
View Full Code Here

    Session session = Session.get();
    session.info("Message");
    session.info("Not rendered");
    FeedbackMessages feedbackMessages = session.getFeedbackMessages();
    Iterator<FeedbackMessage> iterator = feedbackMessages.iterator();
    FeedbackMessage message = iterator.next();
    message.markRendered();
    feedbackMessages.clear(RENDERED_MESSAGES);
    assertEquals(1, feedbackMessages.size());
    message = iterator.next();
    message.markRendered();
    feedbackMessages.clear(RENDERED_MESSAGES);
    assertEquals(0, feedbackMessages.size());
  }
View Full Code Here

    Session session = Session.get();
    session.info("Message");
    session.info("Not rendered");
    FeedbackMessages feedbackMessages = session.getFeedbackMessages();
    Iterator iterator = feedbackMessages.iterator();
    FeedbackMessage message = (FeedbackMessage)iterator.next();
    message.markRendered();
    feedbackMessages.clear(RENDERED_MESSAGES);
    assertEquals(1, feedbackMessages.size());
    message = (FeedbackMessage)iterator.next();
    message.markRendered();
    feedbackMessages.clear(RENDERED_MESSAGES);
    assertEquals(0, feedbackMessages.size());
  }
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

     *      .list.ListItem)
     */
    @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

     *      .list.ListItem)
     */
    @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.