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

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


        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"));
        form.add(new KeywordsEditor("keywords", LiveCollectionModel.list(new PropertyModel(infoModel, "keywords"))));
        form.add(new TextField("fees"));
        form.add(new TextField("accessConstraints"));
       
        build(infoModel, form);
View Full Code Here


        public ErrorPanel(String id, final Exception error) {
            super(id, new Model());
           
            add(new Label("message", new PropertyModel(error, "message")));
            add(new TextArea("stackTrace", new Model(handleStackTrace(error))));
            add(new AjaxLink("copy") {
                @Override
                public void onClick(AjaxRequestTarget target) {
                    copyToClipBoard(handleStackTrace(error));
                }
View Full Code Here

        String requiredMark = required ? " *" : "";
        Label label = new Label("paramName", paramLabelModel.getObject() + requiredMark);
        add(label);

        // the text field, with a decorator for validations
        textArea = new TextArea("paramValue", paramValue);
        textArea.setRequired(required);
        // set the label to be the paramLabelModel otherwise a validation error would look like
        // "Parameter 'paramValue' is required"
        textArea.setLabel(paramLabelModel);

View Full Code Here

        add(form);
        final TextField nameField = new TextField("name");
        nameField.setRequired(true);
        nameField.add(new ViewNameValidator());
        form.add(nameField);
        sqlEditor = new TextArea("sql");
        form.add(sqlEditor);
       
        // the parameters and attributes provider
        attProvider = new SQLViewAttributeProvider();
        paramProvider = new SQLViewParamProvider();
View Full Code Here

        // Selection of the IModel associated to the metadata map
        final PropertyModel<MetadataMap> metadata = new PropertyModel<MetadataMap>(model,
                "metadata");

        // TextField associated to the root directory to map
        TextArea ecqlexp = new TextArea("ecqlexp", new MetadataMapModel(metadata,
                RESTUploadECQLPathMapper.EXPRESSION_KEY,String.class));
        // Addition of the validator
        ecqlexp.add(new IValidator<String>() {

            @Override
            public void validate(IValidatable<String> validatable) {
                // Extraction of the expression for the validation
                String expression = validatable.getValue();
View Full Code Here

        // overview policy
        form.add(new DropDownChoice("overviewPolicy", Arrays.asList(OverviewPolicy.values()), new OverviewPolicyRenderer()));
        form.add(new CheckBox("subsamplingEnabled"));
       
        // limited srs list
        TextArea srsList = new SRSListTextArea("srs", LiveCollectionModel.list(new PropertyModel(info, "sRS")));
        form.add(srsList);
       
        // resource limits
        TextField maxInputMemory = new TextField("maxInputMemory");
        maxInputMemory.add(new MinimumValidator(0l));
View Full Code Here

        });
       
        form.add(modeChoice);
       
        form.add(new TextField("title"));
        form.add(new TextArea("abstract"));
       
        DropDownChoice<WorkspaceInfo> wsChoice =
                new DropDownChoice("workspace", new WorkspacesModel(), new WorkspaceChoiceRenderer());
        wsChoice.setNullValid(true);
        if (!isAuthenticatedAsAdmin()) {
View Full Code Here

        name.setRequired(true);
        add(name);
        add(new CheckBox("enabled"));
        add(new CheckBox("advertised"));
        add(new TextField("title"));
        add(new TextArea("abstract"));
        add(new KeywordsEditor("keywords", LiveCollectionModel.list(new PropertyModel(model, "keywords"))));
        add(new MetadataLinkEditor("metadataLinks", model));

        final Form refForm = new Form("referencingForm");
        add(refForm);
View Full Code Here

        super(PageMap.forName("demoRequestResponse"));

        Form form = new Form("form");
        add(form);
        form.add(new HiddenField("url", new PropertyModel(model, "requestUrl")));
        form.add(new TextArea("body", new PropertyModel(model, "requestBody")));
        form.add(new HiddenField("username", new PropertyModel(model, "userName")));
        form.add(new HiddenField("password", new PropertyModel(model, "password")));

        // override the action property of the form to submit to the TestWfsPost
        // servlet
View Full Code Here

        final CheckBox overrideServiceSRS = new CheckBox("overridingServiceSRS", overrideServiceSRSModel);
        add(overrideServiceSRS);
        final WebMarkupContainer otherSrsContainer = new WebMarkupContainer("otherSRSContainer");
        otherSrsContainer.setOutputMarkupId(true);
        add(otherSrsContainer);
        final TextArea srsList = new SRSListTextArea("srs", LiveCollectionModel.list(new PropertyModel(model, "resource.responseSRS")));
        srsList.setOutputMarkupId(true);
        srsList.setVisible(Boolean.TRUE.equals(overrideServiceSRSModel.getObject()));
        otherSrsContainer.add(srsList);
        overrideServiceSRS.add(new AjaxFormComponentUpdatingBehavior("onchange") {
           
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                Boolean visible = overrideServiceSRS.getConvertedInput();
                srsList.setVisible(visible);
                target.addComponent(otherSrsContainer);
            }
        });
        add(new AjaxLink("skipNumberMatchedHelp") {
            @Override
View Full Code Here

TOP

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

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.