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

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


      TextField<String> field = new TextField<String>("openid", _openIdModel = new Model<String>());
      field.setRequired(true);
      field.setLabel(new ResourceModel("openId", "Open ID"));
      field.add(new UrlValidator(new String[] { "http", "https" }));

      add(new SimpleFormComponentLabel("label", field));

      add(field);

    }
View Full Code Here


    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));

    // attach an ajax validation behavior to all form component's onkeydown
    // event and throttle it down to once per second

    AjaxFormValidatingBehavior.addToAllFormComponents(form, "onkeyup",
View Full Code Here

TOP

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

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.