_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;
}