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

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


            profilingRule = defaultProfile.toString();
           
            add(new FeedbackPanel("feedback"));
            Form userForm = new Form("newUserForm");
            add(userForm);
            RequiredTextField userName = new RequiredTextField("userName",
                    new PropertyModel(this, "userName"));
            userName.add(new PrincipalNameValidator());
            userForm.add(userName);
            TextField password = new PasswordTextField("password",
                    new PropertyModel(this, "password"));
            userForm.add(password);
            CheckBox changePassword = new CheckBox("checkpass",
View Full Code Here


           
            Form userForm = new Form("newUserForm");
            add(userForm);     
            add(new FeedbackPanel("feedback"));
            userForm.add(new Label("userNameLabel",new ResourceModel(principalParam + ".new.button")));           
            TextField userName = new RequiredTextField("userName",new PropertyModel(this, "userName"));
            userName.add(new PrincipalNameValidator());
            userForm.add(userName);
            Button newUser = new Button("addUser",new ResourceModel(principalParam +".add.button")){
        @Override
        public void onSubmit() {
          JetspeedPrincipal principal =  getManager().newPrincipal(getUserName(),false);
View Full Code Here

    {
      super(id);

      captchaImageResource = new CaptchaImageResource(imagePass);
      add(new Image("captchaImage", captchaImageResource));
      add(new RequiredTextField("password", new PropertyModel(properties, "password"))
      {
        @Override
        protected final void onComponentTag(final ComponentTag tag)
        {
          super.onComponentTag(tag);
View Full Code Here

    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

    private static final long serialVersionUID = 1L;

    public StringEditor(String id, IModel model, IModel labelModel, Class type)
    {
      super(id, "stringEditor");
      add(new RequiredTextField("edit", model, type).setLabel(labelModel));
    }
View Full Code Here

    Form form = new Form("exampleForm", new CompoundPropertyModel(validationTestBean));
    add(form);

    form.add(new YavBehavior());

    form.add(new RequiredTextField("typeDate1"));
   
    form.add(new RequiredTextField("typeDate2"));
   
    form.add(new RequiredTextField("typeInt"));
   
    form.add(new RequiredTextField("typeDecimal"));

    form.add(new RequiredTextField("typeBigDecimal"));
   
    form.add(new RequiredTextField("maxLengthString")
        .add(StringValidator.MaximumLengthValidator.maximumLength(10)));

    form.add(new RequiredTextField("minLengthString")
        .add(StringValidator.MaximumLengthValidator.minimumLength(10)));

    form.add(new RequiredTextField("exactLengthString")
        .add(StringValidator.ExactLengthValidator.exactLength(10)));

    form.add(new RequiredTextField("lengthBetweenString")
        .add(StringValidator.LengthBetweenValidator.lengthBetween(10, 20)));

    form.add(new RequiredTextField("email")
        .add(EmailAddressValidator.getInstance()));

    form.add(new RequiredTextField("pattern", new Model())
        .add(new PatternValidator(".*\\.com")));

    FormComponent formComponent1 = new RequiredTextField("dateOfBirth1");
    FormComponent formComponent2 = new RequiredTextField("dateOfBirth2");
    form.add(formComponent1);
    form.add(formComponent2);
    form.add(new EqualInputValidator(formComponent1, formComponent2));

    form.add(new RequiredTextField("rangeLong", Long.class)
        .add(new RangeValidator(10L, 20L)));

    // Seems not to be supported by Yav yet
    // form.add(new RequiredTextField("minInt").add(new MinimumValidator(10)));

View Full Code Here

    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

     */
    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

     * 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

    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

TOP

Related Classes of org.apache.wicket.markup.html.form.RequiredTextField

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.