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

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


            super(id);
            final String excludeName = excludes.getName();
            this.excludes = new ExcludesDefinitionBean(excludes);
            final Form menuform = new Form("menuForm");
            menuform.add(new Label("namelabel",new ResourceModel("common.name")));
            menuform.add(new TextField("nameField", new PropertyModel(this,
                    "excludes.name")));
            menuform.add(new AjaxButton("save",new ResourceModel("common.save"),menuform)
            {

                @Override
View Full Code Here


        {
            super(id);
            this.separator = new SeparatorDefinitionBean(separator);
            final String textName = separator.getText();
            Form separatorForm = new Form("separatorDataForm");
            separatorForm.add(new TextField("separatorText", new PropertyModel(
                    this, "separator.text")));
            separatorForm.add(new TextField("separatorTitle",
                    new PropertyModel(this, "separator.title")));
            separatorForm.add(new Label("nameLabel",new ResourceModel("common.name")));
            separatorForm.add(new Label("titleLabel",new ResourceModel("common.title")));
            separatorForm.add(new AjaxButton("save",new ResourceModel("common.save"), separatorForm)
            {
View Full Code Here

            final WebMarkupContainer ajaxPanel = new WebMarkupContainer(
                    "ajaxPanel");
            final FeedbackPanel feedbackPanel = new FeedbackPanel("feedback");
            ajaxPanel.setOutputMarkupId(true);
            Form menuform = new Form("menuForm");
            TextField nameField = new RequiredTextField("nameField",
                    new PropertyModel(this, "menuDef.name"));
            menuform.add(nameField);
            TextField optionsField = new TextField("optionsField",
                    new PropertyModel(this, "menuDef.options"));
            menuform.add(optionsField);
            TextField depthField = new TextField("depthField",
                    new PropertyModel(this, "menuDef.depth"));
            menuform.add(depthField);
            CheckBox pathField = new CheckBox("pathField", new PropertyModel(
                    this, "menuDef.paths"));
            menuform.add(pathField);
            CheckBox regExpField = new CheckBox("regExpField",
                    new PropertyModel(this, "menuDef.regexp"));
            menuform.add(regExpField);
            TextField profileField = new TextField("profileField",
                    new PropertyModel(this, "menuDef.profile"));
            menuform.add(profileField);
            TextField titleField = new TextField("titleField",
                    new PropertyModel(this, "menuDef.title"));
            menuform.add(titleField);
            TextField skinField = new TextField("skinField", new PropertyModel(
                    this, "menuDef.skin"));
            menuform.add(skinField);
            TextField orderField = new TextField("orderField",
                    new PropertyModel(this, "menuDef.order"));
            menuform.add(orderField);
            AjaxButton saveButton = new AjaxButton("save", menuform)
            {
View Full Code Here

            feedback.setOutputMarkupId(true);
            add(feedback);
            document = new JetspeedDocument();
            Form infoForm = new Form("newForm");
            Label nameLabel = new Label("name", "Name");
            TextField nameField = new TextField("nameField", new PropertyModel(
                    this, "document.name"));
            nameField.setRequired(true);
            infoForm.add(nameLabel);
            infoForm.add(nameField);
            Label titleLabel = new Label("title", "Title");
            TextField titleField = new TextField("titleField",
                    new PropertyModel(this, "document.title"));
            infoForm.add(titleLabel);
            infoForm.add(titleField);
            Label shortTitleLabel = new Label("shortTitle", "ShortTitle");
            TextField shortTitleField = new TextField("shortTitleField",
                    new PropertyModel(this, "document.shortTitle"));
            infoForm.add(shortTitleField);
            infoForm.add(shortTitleLabel);
            Label urlLabel = new Label("urlLabel", "URL");
            TextField urlField = new TextField("urlField", new PropertyModel(
                    this, "document.url"));
            urlField.setRequired(true);
            infoForm.add(urlLabel);
            infoForm.add(urlField);
            Label targetLabel = new Label("targetLabel", "Target Window");
            DropDownChoice targetField = new DropDownChoice("target",
                    new PropertyModel(this, "document.target"), getTargetList());
View Full Code Here

                }

            };
            copyForm.setOutputMarkupId(true);
            copyForm.add(new Label("docType-label", "Doc Type"));
            TextField typeField = new TextField("docType", new PropertyModel(
                    this, "docType"));
            typeField.setRequired(true);
            copyForm.add(typeField);
            copyForm.add(new Label("docName-label", "Document Name"));
            TextField nameField = new TextField("docName", new PropertyModel(
                    this, "docName"));
            nameField.setRequired(true);
            copyForm.add(nameField);
           
            AjaxCheckBox copyIdsChkBox = new AjaxCheckBox("copyIds", new PropertyModel(this, "copyIds"))
            {
                @Override
View Full Code Here

            feedback.setOutputMarkupId(true);
            add(feedback);
            document = new JetspeedDocument();
            Form infoForm = new Form("newForm");
            Label nameLabel = new Label("name", "Name");
            TextField nameField = new TextField("nameField", new PropertyModel(
                    this, "document.name"));
            nameField.setRequired(true);
            infoForm.add(nameLabel);
            infoForm.add(nameField);
            Label titleLabel = new Label("title", "Title");
            TextField titleField = new TextField("titleField",
                    new PropertyModel(this, "document.title"));
            titleField.setRequired(true);
            infoForm.add(titleLabel);
            infoForm.add(titleField);
            Label shortTitleLabel = new Label("shortTitle", "ShortTitle");
            TextField shortTitleField = new TextField("shortTitleField",
                    new PropertyModel(this, "document.shortTitle"));
            infoForm.add(shortTitleField);
            infoForm.add(shortTitleLabel);
            infoForm.add(new AjaxButton("new",new ResourceModel("add.subfolder"),infoForm)
            {
View Full Code Here

            feedback.setOutputMarkupId(true);
            add(feedback);
            document = new JetspeedDocument();
            Form infoForm = new Form("newForm");
            Label nameLabel = new Label("name", "Name");
            TextField nameField = new TextField("nameField", new PropertyModel(
                    this, "document.name"));
            nameField.setRequired(true);
            infoForm.add(nameLabel);
            infoForm.add(nameField);
            Label titleLabel = new Label("title", "Title");
            TextField titleField = new TextField("titleField",
                    new PropertyModel(this, "document.title"));
            titleField.setRedirect(true);
            infoForm.add(titleLabel);
            infoForm.add(titleField);
            Label shortTitleLabel = new Label("shortTitle", "ShortTitle");
            TextField shortTitleField = new TextField("shortTitleField",
                    new PropertyModel(this, "document.shortTitle"));
            infoForm.add(shortTitleField);
            infoForm.add(shortTitleLabel);
            Label pageDecoratorLabel = new Label("pageDecorator",
                    "Page Decorator");
View Full Code Here

        PortletRequest request = ((AbstractAdminWebApplication) getApplication()).getPortletRequest();
        treeRoot = request.getPreferences().getValue(PortalSiteManager.TREE_ROOT, "/");
        add(new FeedbackPanel("feedback"));
        Form userPrefernces = new Form("userPrefernces");
        userPrefernces.add(new Label("treerootLabel", new ResourceModel("treeroot")));
        userPrefernces.add(new TextField("treeroot", new PropertyModel(this, "treeRoot")).setRequired(true));
        userPrefernces.add(new Button("addUserPrefernces", new ResourceModel("common.save"))
        {
            @Override
            public void onSubmit()
            {
View Full Code Here

            protected void onSubmit()
            {
                setPrincipal(null);
            }
        };
        TextField searchStringField = new TextField("searchString",
                new PropertyModel(this, "searchString"));
        searchForm.add(searchStringField);
        Button searchbutton = new Button("searchButton", new ResourceModel(
                "common.search"));
        searchForm.add(searchbutton);
        Button newPrincipal = new Button("newPrincipal", new ResourceModel(
                principalParam + ".new.button"))
        {

            public void onSubmit()
            {
                setPrincipal(null);
                controlPannels(false);
            }
        };
        searchForm.add(newPrincipal);
        add(searchForm);
        Label label = new Label("userLabel", new ResourceModel(principalParam
                + ".name"));
        label.setVisible(false);
        add(label);
        TextField fld = new TextField("userName", new PropertyModel(this,
                "principal.name"));
        fld.setVisible(false);
        add(fld);
        add(new TabbedPanel("tabs", tabs));
        controlPannels(false);
    }
View Full Code Here

    {
        if (getPrincipal() != null)
        {
            Label label = (Label) get("userLabel");
            label.setVisible(true);
            TextField fl = (TextField) get("userName");
            fl.setVisible(true);
        } else
        {
            Label label = (Label) get("userLabel");
            label.setVisible(false);
            TextField fl = (TextField) get("userName");
            fl.setVisible(false);
        }
        super.onBeforeRender();
    }
View Full Code Here

TOP

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

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.