Package com.sun.faces.ext.validator

Examples of com.sun.faces.ext.validator.RegexValidator


    @Override
    protected Validator createValidator() {
       
        Application app = FacesContext.getCurrentInstance().getApplication();
        RegexValidator validator =
                (RegexValidator) app.createValidator("com.sun.faces.ext.validator.RegexValidator");
        validator.setPattern(regex);
        return validator;
    }
View Full Code Here


    @Override
    protected Validator createValidator() {

        FacesContext ctx = FacesContext.getCurrentInstance();
        Application app = ctx.getApplication();
        RegexValidator validator =
                (RegexValidator) app.createValidator("com.sun.faces.ext.validator.RegexValidator");
        validator.setPattern((String) regex.getValue(ctx.getELContext()));
        return validator;
       
    }
View Full Code Here

TOP

Related Classes of com.sun.faces.ext.validator.RegexValidator

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.