Package org.apache.wicket.markup.html.form.validation

Examples of org.apache.wicket.markup.html.form.validation.FormComponentFeedbackBorder


      TextField<String> name = new TextField<String>("partyDetails.name");
      name.setRequired(Boolean.TRUE);
      name.add(new StringValidator(1, 30));

      FormComponentFeedbackBorder nameBorder = new FormComponentFeedbackBorder("nameBorder");
      add(nameBorder);
      nameBorder.add(name);
    }
View Full Code Here


      // that edits the book's title
      final TextField<String> title = new TextField<String>("title");
      title.setRequired(true);
      title.add(new StringValidator(null, 30));

      final MarkupContainer titleFeedback = new FormComponentFeedbackBorder("titleFeedback");
      add(titleFeedback);
      titleFeedback.add(title);

      // Create a required text field that edits the book's author
      final TextField<String> author = new TextField<String>("author");
      author.setRequired(true);
      final MarkupContainer authorFeedback = new FormComponentFeedbackBorder("authorFeedback");
      add(authorFeedback);
      authorFeedback.add(author);

      // Add fiction checkbox
      add(new CheckBox("fiction"));

      // Books is everything but otherBook
View Full Code Here

      // that edits the book's title
      final TextField<String> title = new TextField<String>("title");
      title.setRequired(true);
      title.add(StringValidator.maximumLength(30));

      final MarkupContainer titleFeedback = new FormComponentFeedbackBorder("titleFeedback");
      add(titleFeedback);
      titleFeedback.add(title);

      // Create a required text field that edits the book's author
      final TextField<String> author = new TextField<String>("author");
      author.setRequired(true);
      final MarkupContainer authorFeedback = new FormComponentFeedbackBorder("authorFeedback");
      add(authorFeedback);
      authorFeedback.add(author);

      // Add fiction checkbox
      add(new CheckBox("fiction"));

      // Books is everything but otherBook
View Full Code Here

      TextField<String> name = new TextField<String>("partyDetails.name");
      name.setRequired(Boolean.TRUE);
      name.add(new StringValidator.LengthBetweenValidator(1, 30));

      FormComponentFeedbackBorder nameBorder = new FormComponentFeedbackBorder("nameBorder");
      add(nameBorder);
      nameBorder.add(name);
    }
View Full Code Here

   * Construct.
   */
  public FeedbackFormPage()
  {
    final TextField<String> tf = new TextField<String>("input", new Model<String>());
    final FormComponentFeedbackBorder feedback = new FormComponentFeedbackBorder("feedback");
    feedback.add(tf);

    Form<Void> form = new Form<Void>("form")
    {
      private static final long serialVersionUID = 1L;

View Full Code Here

      // Create a required text field with a max length of 30 characters
      // that edits the book's title
      final TextField<String> title = new TextField<String>("title");
      title.setRequired(true);
      title.add(StringValidator.maximumLength(30));
      final FormComponentFeedbackBorder titleFeedback = new FormComponentFeedbackBorder(
        "titleFeedback");
      add(titleFeedback);
      titleFeedback.add(title);

      // Create a required text field that edits the book's author
      final TextField<String> author = new TextField<String>("author");
      author.setRequired(true);
      final FormComponentFeedbackBorder authorFeedback = new FormComponentFeedbackBorder(
        "authorFeedback");
      add(authorFeedback);
      authorFeedback.add(author);

      // Add fiction checkbox
      add(new CheckBox("fiction"));

      // Books is everything but otherBook
View Full Code Here

   * Construct.
   */
  public FeedbackFormPage()
  {
    final TextField tf = new TextField("input", new Model());
    final FormComponentFeedbackBorder feedback = new FormComponentFeedbackBorder("feedback");
    feedback.add(tf);

    Form form = new Form("form")
    {
      private static final long serialVersionUID = 1L;

View Full Code Here

        choice.setRequired(required);
        // set the label to be the paramLabelModel otherwise a validation error would look like
        // "Parameter 'paramValue' is required"
        choice.setLabel(paramLabelModel);

        FormComponentFeedbackBorder feedback = new FormComponentFeedbackBorder("border");
        feedback.add(choice);
        add(feedback);
    }
View Full Code Here

            for (IValidator validator : validators) {
                textField.add(validator);
            }
        }
       
        FormComponentFeedbackBorder feedback = new FormComponentFeedbackBorder("border");
        feedback.add(textField);
        feedback.add(chooserButton((String) paramLabelModel.getObject()));
        add(feedback);
    }
View Full Code Here

    if (validators != null) {
      for (IValidator validator : validators) {
        textField.add(validator);
      }
    }
    FormComponentFeedbackBorder feedback = new FormComponentFeedbackBorder(
        "border");
    feedback.add(textField);
    add(feedback);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.form.validation.FormComponentFeedbackBorder

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.