Package org.apache.wicket.markup.html.panel

Examples of org.apache.wicket.markup.html.panel.FeedbackPanel


   * @param messages
   *            messages expected to be rendered
   */
  public void assertFeedback(String path, String[] messages)
  {
    final FeedbackPanel fbp = (FeedbackPanel)getComponentFromLastRenderedPage(path);
    final IModel<List<FeedbackMessage>> model = fbp.getFeedbackMessagesModel();
    final List<FeedbackMessage> renderedMessages = model.getObject();
    if (renderedMessages == null)
    {
      fail("feedback panel at path [" + path + "] returned null messages");
    }
View Full Code Here


  public UploadPage(final PageParameters parameters)
  {
    Folder uploadFolder = getUploadFolder();

    // Create feedback panels
    final FeedbackPanel uploadFeedback = new FeedbackPanel("uploadFeedback");

    // Add uploadFeedback to the page itself
    add(uploadFeedback);

    // Add simple upload form, which is hooked up to its feedback panel by
View Full Code Here

  /**
   * Construct.
   */
  public NestedFormsPage()
  {
    feedback = new FeedbackPanel("feedback");
    add(feedback.setOutputMarkupId(true));

    Form<?> outerForm = new NestableForm("outerForm");
    add(outerForm.setOutputMarkupId(true));

View Full Code Here

    form.add(submitForm);

    form.add(invalidPanel);
    form.add(formComponent);

    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

    // Shared resource link
    add(new ResourceLink("cancelButtonLink", new SharedResourceReference("cancelButton")));

    // redirect to external url form
    FeedbackPanel feedbackPanel = new FeedbackPanel("feedback");
    add(feedbackPanel);
    add(new RedirectForm("redirectForm"));

    Link linkToAnchor = new Link("linkToAnchor")
    {
View Full Code Here

    form.add(dateTextField);

    DatePicker datePicker = new DatePicker();
    datePicker.setShowOnFieldClick(true);
    dateTextField.add(datePicker);
    add(new FeedbackPanel("feedback"));

    Form<?> form2 = new Form<Void>("form2")
    {
      @Override
      protected void onSubmit()
View Full Code Here

        info("Submitted text: " + field.getDefaultModelObject());
      }
    };
    statelessForm.add(field);
    add(statelessForm);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

        info("Submitted text: " + field.getDefaultModelObject());
      }
    };
    statelessForm.add(field);
    add(statelessForm);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

        info("Submitted text: " + field.getDefaultModelObject());
      }
    };
    statelessForm.add(field);
    add(statelessForm);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

        submitButton.setDefaultFormProcessing(false);
        form.add(submitButton);

        add(form);
        add(new FeedbackPanel("feedback"));

        // Modal window for self registration
        final ModalWindow editProfileModalWin = new ModalWindow("selfRegModal");
        editProfileModalWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
        editProfileModalWin.setInitialHeight(SELF_REG_WIN_HEIGHT);
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.panel.FeedbackPanel

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.