Package javax.faces.validator

Examples of javax.faces.validator.FacesValidator


    public void collect(Class<?> target, Annotation annotation) {

        if (validators == null) {
            validators = new HashMap<ValidatorInfo,String>();
        }
        FacesValidator validatorAnnotation = (FacesValidator) annotation;
        ValidatorInfo info = new ValidatorInfo(validatorAnnotation.value(), validatorAnnotation.isDefault());
        validators.put(info, target.getName());

    }
View Full Code Here


            {
                application.addConverter(conv.value(), clazz.getName());
            }
        }
       
        FacesValidator val = (FacesValidator) clazz
        .getAnnotation(FacesValidator.class);
        if (val != null)
        {
            if (log.isLoggable(Level.FINEST))
            {
                log.finest("addValidator(" + val.value() + "," + clazz.getName()
                        + ")");
            }
            //If there is a previous entry on Application Configuration Resources,
            //the entry there takes precedence
            if (dispenser.getValidatorClass(val.value()) == null)
            {
                application.addValidator(val.value(), clazz.getName());
                if (val.isDefault())
                {
                    application.addDefaultValidatorId(val.value());
                }
            }
        }

        FacesRenderer rend = (FacesRenderer) clazz
View Full Code Here

TOP

Related Classes of javax.faces.validator.FacesValidator

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.