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

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


   * 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


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

      FormComponentFeedbackBorder nameBorder = new FormComponentFeedbackBorder("nameBorder");
      nameBorder.add(name);
      add(nameBorder);
    }
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

      // Create a required text field with a max length of 30 characters
      // that edits the book's title
      final TextField title = new TextField("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 author = new TextField("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

      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.addToBorderBody(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.addToBorderBody(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 title = new TextField("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 author = new TextField("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

      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.addToBorderBody(name);
    }
View Full Code Here

      // that edits the book's title
      final TextField<String> title = new TextField<>("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<>("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

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.