Package org.apache.wicket.feedback

Examples of org.apache.wicket.feedback.ComponentFeedbackMessageFilter


   * @param component
   *            The component to watch for messages
   */
  public void setIndicatorFor(final Component component)
  {
    filter = new ComponentFeedbackMessageFilter(component);
  }
View Full Code Here


   * @param component
   *            The component to watch for messages
   */
  public void setIndicatorFor(final Component component)
  {
    filter = new ComponentFeedbackMessageFilter(component);
  }
View Full Code Here

   * @param filter
   *            the component for which the messages need to be filtered.
   */
  public ComponentFeedbackPanel(String id, Component filter)
  {
    super(id, new ComponentFeedbackMessageFilter(filter));
  }
View Full Code Here

   * @param filter
   *     the component for which the messages need to be filtered.
   */
  public ComponentFeedbackPanel(String id, Component<?> filter)
  {
    super(id, new ComponentFeedbackMessageFilter(filter));
  }
View Full Code Here

   * @param component
   *            The component to watch for messages
   */
  public void setIndicatorFor(final Component< ? > component)
  {
    filter = new ComponentFeedbackMessageFilter(component);
  }
View Full Code Here

                (MarkupContainer) c)
            );
        }
        else
        {
            model.setFilter(new ComponentFeedbackMessageFilter(c));
        }
        return model;
    }
View Full Code Here

  }

  private void initFeedback(final WebMarkupContainer container)
  {
    if (formFeedback == null) {
      formFeedback = new FeedbackPanel("formFeedback", new ComponentFeedbackMessageFilter(form));
      formFeedback.setOutputMarkupId(true);
      formFeedback.setOutputMarkupPlaceholderTag(true);
    }
    container.add(formFeedback);
  }
View Full Code Here

    // Add the ERROR class to the sourrounding component
    b.append("$('#" + getComponent().getMarkupId() + "').parent().addClass('" + ERROR_COMPONENT_CLASS + "');");

    // Create list of error messages, separated by the chosen separator markup
    List<FeedbackMessage> messages = Session.get().getFeedbackMessages().messages(new ComponentFeedbackMessageFilter(getComponent()));
    StringBuilder mb = new StringBuilder("");

    for(int i = 0; i < messages.size(); i++ ) {
      String msg = messages.get(i).getMessage().toString().replace("'", "\\'");
      mb.append(msg);
View Full Code Here

      ERROR_COMPONENT_CLASS + "');");

    // Create list of error messages, separated by the chosen separator markup
    List<FeedbackMessage> messages = Session.get()
      .getFeedbackMessages()
      .messages(new ComponentFeedbackMessageFilter(getComponent()));
    StringBuilder mb = new StringBuilder("");

    for (int i = 0; i < messages.size(); i++)
    {
      String msg = messages.get(i).getMessage().toString().replace("'", "\\'");
View Full Code Here

   * @param component
   *            The component to watch for messages
   */
  public void setIndicatorFor(final Component component)
  {
    filter = new ComponentFeedbackMessageFilter(component);
  }
View Full Code Here

TOP

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

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.