Package org.omnifaces.validator

Examples of org.omnifaces.validator.MultiFieldValidator


    ValidateMultiple validateMultiple = (ValidateMultiple) component;
    TagAttribute attribute = getRequiredAttribute("validator");

    try { // Yes, this try-catch is ugly, but there's really no clean way to distinguish a VE from a ME.
      ValueExpression valueExpression = attribute.getValueExpression(context, MultiFieldValidator.class);
      MultiFieldValidator validator = (MultiFieldValidator) valueExpression.getValue(context);
      validateMultiple.setValidator(validator);
    }
    catch (Exception e) { // At least, ClassCastException and PropertyNotFoundException are expected.
      MethodExpression validateMethod = attribute.getMethodExpression(context, boolean.class, PARAM_TYPES);
      validateMultiple.setValidateMethod(validateMethod);
View Full Code Here

TOP

Related Classes of org.omnifaces.validator.MultiFieldValidator

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.