Package org.apache.wicket.model

Examples of org.apache.wicket.model.PropertyModel


        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


            {
                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

           
            add(new FeedbackPanel("feedback"));
            Form userForm = new Form("newUserForm");
            add(userForm);
            RequiredTextField userName = new RequiredTextField("userName",
                    new PropertyModel(this, "userName"));
            userName.add(new PrincipalNameValidator());
            userForm.add(userName);
            TextField password = new PasswordTextField("password",
                    new PropertyModel(this, "password"));
            userForm.add(password);
            CheckBox changePassword = new CheckBox("checkpass",
                    new PropertyModel(this, "checkpass"));
            userForm.add(changePassword);
            DropDownChoice profilingtRole = new DropDownChoice("profilingRule",
                    new PropertyModel(this, "profilingRule"), getProfileList());
            userForm.add(profilingtRole);
            Button newUser = new Button("addUser",new ResourceModel(principalParam +".add.button"))
            {

                @Override
View Full Code Here

        Label countValue = new Label("count", new Model(outOfService.size()));
        trackingForm.add(countValue);
       
        checkGroup.add(new Label("portletsLabel", new ResourceModel("tracker.portlets")));
       
        PageableListView portletsList = new PageableListView("portlets", new PropertyModel(this, "outOfService"), 10)
        {
            protected void populateItem(ListItem item)
            {
                final PortletDefinition portletDefinition = (PortletDefinition) item.getModelObject();
                item.add(new Check("checkbox", item.getModel()));
                item.add(new Label("name", new PropertyModel(portletDefinition, "uniqueName")));
            }
        };
       
        checkGroup.add(new CheckGroupSelector("groupSelector"));
        checkGroup.add(portletsList);
View Full Code Here

           
            Form userForm = new Form("newUserForm");
            add(userForm);     
            add(new FeedbackPanel("feedback"));
            userForm.add(new Label("userNameLabel",new ResourceModel(principalParam + ".new.button")));           
            TextField userName = new RequiredTextField("userName",new PropertyModel(this, "userName"));
            userName.add(new PrincipalNameValidator());
            userForm.add(userName);
            Button newUser = new Button("addUser",new ResourceModel(principalParam +".add.button")){
        @Override
        public void onSubmit() {
View Full Code Here

    @Override
    public void buildItems(Fragment fragment, final DisplayNameBean displayNameBean)
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        fragment.add(new TextField<String>("locale", new PropertyModel(new DisplayNameBeanModel(locator, paNodeBean, displayNameBean), "localeString")));
        fragment.add(new TextField<String>("displayName", new PropertyModel(new DisplayNameBeanModel(locator, paNodeBean, displayNameBean), "displayName")));
    }
View Full Code Here

    @Override
    public void buildItems(Fragment fragment, final LanguageBean field)
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        fragment.add(new TextField<String>("title", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "title")));
        fragment.add(new TextField<String>("shortTitle", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "shortTitle")));
        fragment.add(new TextField<String>("keywords", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "keywords")));
        fragment.add(new TextField<String>("locale", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "localeString")));
    }
View Full Code Here

    @Override
    public void buildNew(Fragment fragment)
    {
        fragment.add(new TextField<String>("newMimeType", new PropertyModel<String>(this, "newMimeType")));
        fragment.add(new CheckBoxMultipleChoice("newPortletModes", new PropertyModel(this, "newPortletModes"), availablePortletModes));
    }
View Full Code Here

    @Override
    public void buildItems(Fragment fragment, final Supports field)
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        fragment.add(new TextField<String>("mimeType", new PropertyModel(new SupportsModel(locator, paNodeBean, field), "mimeType")));
        fragment.add(new CheckBoxMultipleChoice("portletModes", new PropertyModel(new SupportsModel(locator, paNodeBean, field), "portletModes"), availablePortletModes));
    }
View Full Code Here

        private String cloneName;

        public CloneForm(String name)
        {
            super(name);
            add(new TextField("cloneName", new PropertyModel(this, "cloneName")));       
            add(new Button("cloneButton", new ResourceModel("pam.details.action.clone"))
            {
                @Override
                public void onSubmit()
                {
View Full Code Here

TOP

Related Classes of org.apache.wicket.model.PropertyModel

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.