"Parent not an instance of EditableValueHolder: " + parent);
}
if (null == parent.getParent()) {
// New created component, add validator.
FacesContext facesContext = FacesContext.getCurrentInstance();
FacesBeanValidator validator = (FacesBeanValidator) facesContext
.getApplication().createValidator(
FacesBeanValidator.BEAN_VALIDATOR_TYPE);
if (null != _summary) {
if (_summary.isLiteral()) {
validator.setSummary(_summary.getValue(ctx));
} else {
validator.setSummary(_summary.getValueExpression(ctx,
String.class));
}
}
if( null != _profiles){
if(_profiles.isLiteral()){
validator.setProfiles(AjaxRendererUtils.asSet(_profiles.getValue()));
} else {
validator.setProfiles(_profiles.getValueExpression(ctx, Set.class));
}
}
((EditableValueHolder) parent).addValidator(validator);
}
if (null != this._event) {