Package org.openfaces.validator

Examples of org.openfaces.validator.EqualValidator


*/
public class ValidateEqualTag extends AbstractCustomValidatorTag {
    @Override
    public void setProperties(AbstractCustomValidator abstractCustomValidator) {
        super.setProperties(abstractCustomValidator);
        EqualValidator equalValidator = (EqualValidator) abstractCustomValidator;
        String aFor = getPropertyValue("for");
        if (aFor == null)
            throw new IllegalArgumentException("EqualValidatorError. 'for' can not be null");
        equalValidator.setFor(aFor);
    }
View Full Code Here


        return null;
    }


    public Validator validator(FacesContext context, UIComponent component, Object value) {
        EqualValidator e = new EqualValidator();
        e.setFor("first");
        e.validate(context, component, value);
        return e;
    }
View Full Code Here

        e.validate(context, component, value);
        return e;
    }

    public Validator getValidator() {
        EqualValidator e = new EqualValidator();
        e.setFor("first");
        return e;
    }
View Full Code Here

TOP

Related Classes of org.openfaces.validator.EqualValidator

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.