Package org.rhq.core.gui.validator

Examples of org.rhq.core.gui.validator.PropertySimpleValueValidator


    private static void addValidatorsAndConverter(UIInput input, PropertyDefinitionSimple propertyDefinitionSimple,
        boolean readOnly,TemplateEngine templateEngine ) {
        if (!readOnly) {
            input.setRequired(propertyDefinitionSimple.isRequired());
            input.addValidator(new PropertySimpleValueValidator(propertyDefinitionSimple));
            input.setConverter(new PropertySimpleValueConverter(templateEngine));
        }
    }
View Full Code Here


    private static void addErrorMessages(UIInput input, @Nullable PropertyDefinitionSimple propertyDefinitionSimple,
        PropertySimple propertySimple, boolean prevalidate) {
        if (prevalidate) {
            // Pre-validate the property's value, in case the PC sent us an invalid live config.
            PropertySimpleValueValidator validator = new PropertySimpleValueValidator(propertyDefinitionSimple);
            //PropertySimple propertySimple = this.propertyMap.getSimple(propertyDefinitionSimple.getName());
            prevalidatePropertyValue(input, propertySimple, validator);
        }
        // If there is a PC-detected error associated with the property, associate it with the input.
        addPluginContainerDetectedErrorMessage(input, propertySimple);
View Full Code Here

TOP

Related Classes of org.rhq.core.gui.validator.PropertySimpleValueValidator

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.