Package org.apache.wicket.validation.validator

Examples of org.apache.wicket.validation.validator.UrlValidator


*/
public class ParsleyUrlValidator extends ParsleyValidationBehavior<String>
{
  public ParsleyUrlValidator()
  {
    super(new UrlValidator());

    require(true);
    type("urlstrict");
  }
View Full Code Here


   * @param model
   *            the input value
   */
  public UrlTextField(String id, IModel<String> model)
  {
    this(id, model, new UrlValidator());
  }
View Full Code Here

        form.add(new Label("service.enabled", new StringResourceModel("service.enabled", this, null, new Object[]{
            getServiceName()
        })));
        form.add(new TextField("maintainer"));
        TextField onlineResource = new TextField("onlineResource");
        onlineResource.add(new UrlValidator());
        form.add(onlineResource);
        form.add(new CheckBox("enabled"));
        form.add(new CheckBox("citeCompliant"));
        form.add(new TextField("title"));
        form.add(new TextArea("abstract"));
View Full Code Here

        ));

        final TextField href = new TextField("wms.attribution.href",
            new PropertyModel(model, "attribution.href")
        );
        href.add(new UrlValidator());
        href.setOutputMarkupId(true);
        add(href);

        final TextField logo = new TextField("wms.attribution.logo",
            new PropertyModel(model, "attribution.logoURL")
        );
        logo.add(new UrlValidator());
        logo.setOutputMarkupId(true);
        add(logo);

        final TextField type = new TextField("wms.attribution.type",
            new PropertyModel(model, "attribution.logoType")
View Full Code Here

                item.add(urlBorder);
                TextField format = new TextField("format", new PropertyModel(item.getModel(), "type"));
                format.setRequired(true);
                item.add(format);
                TextField url = new TextField("metadataLinkURL", new PropertyModel(item.getModel(), "content"));
                url.add(new UrlValidator());
                url.setRequired(true);
                urlBorder.add(url);
               
                // remove link
                AjaxLink link = new AjaxLink("removeLink", item.getModel()) {
View Full Code Here

   * @param model
   *            the input value
   */
  public UrlTextField(String id, IModel<String> model)
  {
    this(id, model, new UrlValidator());
  }
View Full Code Here

      });

      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

      });

      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

        ));

        final TextField href = new TextField("wms.attribution.href",
            new PropertyModel(model, "attribution.href")
        );
        href.add(new UrlValidator());
        href.setOutputMarkupId(true);
        add(href);

        final TextField logo = new TextField("wms.attribution.logo",
            new PropertyModel(model, "attribution.logoURL")
        );
        logo.add(new UrlValidator());
        logo.setOutputMarkupId(true);
        add(logo);

        final TextField type = new TextField("wms.attribution.type",
            new PropertyModel(model, "attribution.logoType")
View Full Code Here

        form.add(new CheckBox("verbose"));
        form.add(new CheckBox("verboseExceptions"));
        form.add(new CheckBox("globalServices"));
        form.add(new TextField<Integer>("numDecimals").add(new MinimumValidator<Integer>(0)));
        form.add(new DropDownChoice("charset", AVAILABLE_CHARSETS));
        form.add(new TextField("proxyBaseUrl").add(new UrlValidator()));
       
        logLevelsAppend(form, loggingInfoModel);
        form.add(new CheckBox("stdOutLogging", new PropertyModel( loggingInfoModel, "stdOutLogging")));
        form.add(new TextField("loggingLocation", new PropertyModel( loggingInfoModel, "location")) );
View Full Code Here

TOP

Related Classes of org.apache.wicket.validation.validator.UrlValidator

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.