Package org.apache.wicket.validation.validator

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


                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


     * local (no URI scheme, or file URI scheme) or a remote
     * @param allowRemoteUrl
     */
    public FileExistsValidator(boolean allowRemoteUrl) {
        if(allowRemoteUrl) {
            this.delegate = 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

    addDoapResourceForm.add(new RequiredTextField<String>(
        "anonymousAccess"));
    addDoapResourceForm.add(devAccessField = new RequiredTextField<String>(
        "devAccess"));
    devAccessField.add(new UrlValidator());
    addDoapResourceForm.add(browseField = new RequiredTextField<String>(
        "browseAccess"));
    browseField.add(new UrlValidator());

    List<DoapRepositoryType> allDoapRepositoryTypes = Arrays
        .asList(DoapRepositoryType.values());
    typeField = new DropDownChoice<DoapRepositoryType>("listedTypes",
        new PropertyModel<DoapRepositoryType>(inputModel, "comboChoice"),
View Full Code Here

    addDoapResourceForm.add(nameField = new RequiredTextField<String>("name"));
    nameField.add(StringValidator.minimumLength(4));

    addDoapResourceForm.add(urlField = new RequiredTextField<String>("url"));
    urlField.add(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

        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 DropDownChoice<ResourceErrorHandling>("resourceErrorHandling", Arrays.asList(ResourceErrorHandling.values()),
                new ResourceErrorHandlingRenderer()));
        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

     * local (no URI scheme, or file URI scheme) or a remote
     * @param allowRemoteUrl
     */
    public FileExistsValidator(boolean allowRemoteUrl) {
        if(allowRemoteUrl) {
            this.delegate = new UrlValidator();
        }
    }
View Full Code Here

            otherSettingsPanel.add(new CheckBox("verbose"));
            otherSettingsPanel.add(new CheckBox("verboseExceptions"));
            otherSettingsPanel.add(new CheckBox("localWorkspaceIncludesPrefix"));
            otherSettingsPanel.add(new TextField<Integer>("numDecimals").add(new MinimumValidator<Integer>(0)));
            otherSettingsPanel.add(new DropDownChoice("charset", GlobalSettingsPage.AVAILABLE_CHARSETS));
            otherSettingsPanel.add(new TextField("proxyBaseUrl").add(new UrlValidator()));
           
            // Addition of pluggable extension points
            ListView extensions = SettingsPluginPanelInfo.createExtensions("extensions", set.model,
                    getGeoServerApplication());
            otherSettingsPanel.add(extensions);
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

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.