Length annotation = metaDataEntry.getValue(Length.class);
LengthValidator lengthValidator = (LengthValidator)facesContext.getApplication()
.createValidator("javax.faces.Length");
lengthValidator.setMinimum(annotation.minimum());
lengthValidator.setMaximum(annotation.maximum());
lengthValidator.validate(facesContext, uiComponent, convertedObject);
}
}