Package org.rhq.core.gui.configuration.propset

Examples of org.rhq.core.gui.configuration.propset.PropertySetComponent


        HtmlModalPanel propSetModalPanel = configurationSetComponent.getPropSetModalPanel();
        boolean containsInvalidInputs = false;
        List<PropertySetComponent> propertySetComponents = FacesComponentUtility.getDescendantsOfType(
            propSetModalPanel, PropertySetComponent.class);
        if (propertySetComponents.size() == 1) {
            PropertySetComponent propertySetComponent = propertySetComponents.get(0);
            List<UIInput> inputs = FacesComponentUtility.getDescendantsOfType(propertySetComponent, UIInput.class);
            for (UIInput input : inputs) {
                if (!input.isValid()) {
                    containsInvalidInputs = true;
                    break;
View Full Code Here


        ajaxOutputPanel.setLayout("block");
        ajaxOutputPanel.setAjaxRendered(true);
        ajaxOutputPanel.setKeepTransient(true);

        // And finally add the propSet component as a child of this AJAX region.
        PropertySetComponent propertySet = new PropertySetComponent();
        ajaxOutputPanel.getChildren().add(propertySet);
        propertySet.setId(PROPERTY_SET_COMPONENT_ID);
        propertySet.setReadOnly(configurationSetComponent.isReadOnly());
        propertySet.setListIndex(configurationSetComponent.getListIndex());
        ValueExpression valueExpression = FacesExpressionUtility.createValueExpression(
            "#{param.propertyExpressionString}", String.class);
        propertySet.setValueExpression(PropertySetComponent.PROPERTY_EXPRESSION_STRING_ATTRIBUTE, valueExpression);
        // The below can be uncommented in order for the "propertyExpressionValue" attribute to have a valid value
        // on the initial page load (i.e. for testing purposes).
        //propertySet.getAttributes().put(PropertySetComponent.PROPERTY_EXPRESSION_STRING_ATTRIBUTE,
        //            "#{EditTestConfigurationUIBean.configurationSet.groupConfiguration.map['String1'].stringValue}");

        propertySet.setValueExpression(PropertySetComponent.CONFIGURATION_SET_ATTRIBUTE,
            configurationSetComponent.getValueExpression(ConfigurationSetComponent.CONFIGURATION_SET_ATTRIBUTE));

        addPropSetButtons(configurationSetComponent, propSetForm);

        return;
View Full Code Here

TOP

Related Classes of org.rhq.core.gui.configuration.propset.PropertySetComponent

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.