Example usage for org.apache.wicket.markup.html.form UrlTextField UrlTextField

List of usage examples for org.apache.wicket.markup.html.form UrlTextField UrlTextField

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.form UrlTextField UrlTextField.

Prototype

public UrlTextField(String id, IModel<String> model) 

Source Link

Document

Construct.

Usage

From source file:dk.netdesign.common.osgi.config.wicket.fragment.URLFieldFragment.java

License:Apache License

@Override
protected Component getFormInput(String wicketID, IModel<String> model) {
    return new UrlTextField(wicketID, model);
}

From source file:fr.openwide.maven.artifact.notifier.web.application.project.form.ProjectFormPopupPanel.java

@Override
protected Component createBody(String wicketId) {
    DelegatedMarkupPanel body = new DelegatedMarkupPanel(wicketId, ProjectFormPopupPanel.class);

    form = new Form<Project>("form", getModel());
    form.add(//from   w ww . j a  v a  2s.co m
            new RequiredTextField<String>("name", BindingModel.of(getModel(), Binding.project().name()))
                    .setLabel(new ResourceModel("project.field.name")).add(new ProjectNamePatternValidator())
                    .setEnabled(MavenArtifactNotifierSession.get().hasRoleAdmin()),
            new UrlTextField("websiteUrl",
                    new ExternalLinkWrapperWrapModel(BindingModel.of(getModel(),
                            Binding.project().additionalInformation().websiteUrl())))
                                    .setLabel(new ResourceModel("project.field.websiteUrl")),
            new UrlTextField("issueTrackerUrl",
                    new ExternalLinkWrapperWrapModel(BindingModel.of(getModel(),
                            Binding.project().additionalInformation().issueTrackerUrl())))
                                    .setLabel(new ResourceModel("project.field.issueTrackerUrl")),
            new UrlTextField("scmUrl",
                    new ExternalLinkWrapperWrapModel(
                            BindingModel.of(getModel(), Binding.project().additionalInformation().scmUrl())))
                                    .setLabel(new ResourceModel("project.field.scmUrl")),
            new UrlTextField("changelogUrl",
                    new ExternalLinkWrapperWrapModel(BindingModel.of(getModel(),
                            Binding.project().additionalInformation().changelogUrl())))
                                    .setLabel(new ResourceModel("project.field.changelogUrl")),
            new ProjectLicenseDropDownChoice("licenses",
                    BindingModel.of(getModel(), Binding.project().additionalInformation().licenses()))
                            .setLabel(new ResourceModel("project.field.licenses")));
    body.add(form);

    return body;
}