Package org.richfaces.validator

Examples of org.richfaces.validator.FacesBeanValidator


    _profiles = getAttribute("profiles");
  }

  @Override
  protected Validator createValidator(FaceletContext ctx) {
    FacesBeanValidator validator = (FacesBeanValidator) ctx.getFacesContext()
        .getApplication().createValidator(
            FacesBeanValidator.BEAN_VALIDATOR_TYPE);
    if(null != _profiles){
      if(_profiles.isLiteral()){
        validator.setProfiles(AjaxRendererUtils.asSet(_profiles.getValue()));
      } else {
        validator.setProfiles(_profiles.getValueExpression(ctx, Set.class));
      }
    }
    return validator;
  }
View Full Code Here


            }
        }
    }

    public Validator createChildrenValidator() {
        FacesBeanValidator validator = (FacesBeanValidator) getFacesContext().getApplication().createValidator(getType());
        validator.setSummary(getSummary());
        ValueExpression expression = getValueExpression("groups");
        if (null != expression) {
            validator.setGroups(expression);
        } else {
            validator.setGroups(getGroups());
        }
        return validator;
    }
View Full Code Here

TOP

Related Classes of org.richfaces.validator.FacesBeanValidator

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.