Package org.openfaces.validator

Examples of org.openfaces.validator.ClientValidator


    public List<ClientValidator> findClientValidatorsByAnnotations(Collection<? extends Annotation> validationAnnotations) {
        List<ClientValidator> clientValidators = Collections.EMPTY_LIST;

        if (validationAnnotations != null) {
            for (Annotation validationAnnotation : validationAnnotations) {
                ClientValidator validator = ClientValidatorsRegistry.getInstance().getValidator(validationAnnotation);

                if (validator != null) {
                    if (clientValidators.isEmpty()) {
                        clientValidators = new ArrayList<ClientValidator>();
                    }
View Full Code Here


        List<ClientValidator> clientValidators = new ArrayList<ClientValidator>();
        if (required)
            clientValidators.add(new RequiredClientValidator());

        if (converter != null) {
            ClientValidator clientValidator = ClientValidatorUtil.getClientValidator(converter, getComponent());
            if (clientValidator != null)
                clientValidators.add(clientValidator);
        }

        if (validators != null) {
            for (Validator validator : validators) {
                ClientValidator clientValidator = ClientValidatorUtil.getClientValidator(validator);
                if (clientValidator != null)
                    clientValidators.add(clientValidator);
            }
        }
View Full Code Here

TOP

Related Classes of org.openfaces.validator.ClientValidator

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.