protected Validator createValidator() throws JspException {
final FacesContext facesContext = FacesContext.getCurrentInstance();
final Application application = facesContext.getApplication();
final SubmittedValueLengthValidator validator
= (SubmittedValueLengthValidator) application.createValidator(SubmittedValueLengthValidator.VALIDATOR_ID);
final ELContext elContext = FacesContext.getCurrentInstance().getELContext();
if (minimum != null) {
try {
validator.setMinimum((Integer) minimum.getValue(elContext));