Examples of RequiredTextField


Examples of org.apache.wicket.markup.html.form.RequiredTextField

    public CreateForm(String id)
    {
      super(id);

      // label model here comes from java
      add(new RequiredTextField("id", new PropertyModel(book, "id")).setLabel(new Model("id")));
      // label model here comes from CreateBook.properties
      add(new RequiredTextField("name", new PropertyModel(book, "name")));
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.RequiredTextField

          WebRequest request = (WebRequest)getRequest();
          setLocale(request.getLocale());
        }
      });

      RequiredTextField stringTextField = new RequiredTextField("stringProperty");
      stringTextField.setLabel(new Model("String"));
      add(stringTextField);
      RequiredTextField integerTextField = new RequiredTextField("integerProperty");
      add(integerTextField.add(NumberValidator.POSITIVE));
      add(new RequiredTextField("doubleProperty"));

      // add(new DateTimeField("dateProperty"));
      add(new TextField("dateProperty", Date.class).add(new DatePicker()));

      add(new RequiredTextField("integerInRangeProperty").add(NumberValidator.range(0, 100)));
      add(new CheckBox("booleanProperty"));
      add(new Multiply("multiply"));
      // display the multiply result
      Label multiplyLabel = new Label("multiplyLabel", new PropertyModel(getModel(),
          "multiply"));
View Full Code Here

Examples of org.apache.wicket.markup.html.form.RequiredTextField

     */
    public UserDetailsStep()
    {
      super(new ResourceModel("userdetails.title"), null);
      setSummaryModel(new StringResourceModel("userdetails.summary", this, new Model(user)));
      add(new RequiredTextField("user.firstName"));
      add(new RequiredTextField("user.lastName"));
      add(new TextField("user.department"));
      add(new CheckBox("assignRoles"));
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.RequiredTextField

     * Construct.
     */
    public UserNameStep()
    {
      super(new ResourceModel("username.title"), new ResourceModel("username.summary"));
      add(new RequiredTextField("user.userName"));
      add(new RequiredTextField("user.email").add(EmailAddressValidator.getInstance()));
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.RequiredTextField

    {
      super(id);

      captchaImageResource = new CaptchaImageResource(imagePass);
      add(new Image("captchaImage", captchaImageResource));
      add(new RequiredTextField("password", new PropertyModel(properties, "password"))
      {
        protected final void onComponentTag(final ComponentTag tag)
        {
          super.onComponentTag(tag);
          // clear the field after each render
View Full Code Here

Examples of org.apache.wicket.markup.html.form.RequiredTextField

    FormComponent fc;

    // add form components to the form as usual

    fc = new RequiredTextField("name");
    fc.add(StringValidator.minimumLength(4));
    fc.setLabel(new ResourceModel("label.name"));

    form.add(fc);
    form.add(new SimpleFormComponentLabel("name-label", fc));

    fc = new RequiredTextField("email");
    fc.add(EmailAddressValidator.getInstance());
    fc.setLabel(new ResourceModel("label.email"));

    form.add(fc);
    form.add(new SimpleFormComponentLabel("email-label", fc));
View Full Code Here

Examples of org.apache.wicket.markup.html.form.RequiredTextField

          WebRequest request = (WebRequest)getRequest();
          setLocale(request.getLocale());
        }
      });

      RequiredTextField stringTextField = new RequiredTextField("stringProperty");
      stringTextField.setLabel(new Model("String"));
      add(stringTextField);
      RequiredTextField integerTextField = new RequiredTextField("integerProperty",
          Integer.class);
      add(integerTextField.add(NumberValidator.POSITIVE));
      add(new RequiredTextField("doubleProperty", Double.class));

      add(new DateTimeField("dateProperty"));
      // add(DateTextField.forShortStyle("dateProperty").add(new
      // DatePicker()));

      add(new RequiredTextField("integerInRangeProperty", Integer.class).add(NumberValidator
          .range(0, 100)));
      add(new CheckBox("booleanProperty"));
      add(new Multiply("multiply"));
      add(new Label("multiplyLabel", new PropertyModel(getModel(), "multiply"))
          .setComponentBorder(new BeforeAndAfterBorder()));
View Full Code Here

Examples of org.apache.wicket.markup.html.form.RequiredTextField

    public CreateForm(String id)
    {
      super(id);

      // label model here comes from java
      add(new RequiredTextField("id", new PropertyModel(book, "id"))
          .setLabel(new Model("id")));
      // label model here comes from CreateBook.properties
      add(new RequiredTextField("name", new PropertyModel(book, "name")));
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.RequiredTextField

     */
    public UserDetailsStep()
    {
      setTitleModel(new ResourceModel("confirmation.title"));
      setSummaryModel(new StringResourceModel("userdetails.summary", this, new Model(user)));
      add(new RequiredTextField("user.firstName"));
      add(new RequiredTextField("user.lastName"));
      add(new TextField("user.department"));
      add(new CheckBox("assignRoles"));
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.RequiredTextField

     * Construct.
     */
    public UserNameStep()
    {
      super(new ResourceModel("username.title"), new ResourceModel("username.summary"));
      add(new RequiredTextField("user.userName"));
      add(new RequiredTextField("user.email").add(EmailAddressValidator.getInstance()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.