* java.lang.Object)
*/
public void validate(FacesContext context, UIComponent component, Object convertedValue) throws ValidatorException {
if (component instanceof EditableValueHolder) {
// Validate input component
EditableValueHolder input = (EditableValueHolder) component;
try {
ValueExpression valueExpression = component.getValueExpression("value");
if (null != valueExpression) {
BeanValidatorService validatorService = ServiceTracker.getService(BeanValidatorService.class);
Collection<String> messages = validatorService.validateExpression(context, valueExpression, convertedValue,
getGroups());
if (isValidateFields() && !messages.isEmpty()) {
input.setValid(false);
Object label = getLabel(context, component);
Locale locale = context.getViewRoot().getLocale();
// send all validation messages.
for (String msg : messages) {
// https://jira.jboss.org/jira/browse/RF-7636 -