/** * This method returns the Validator, you have to cast it to the correct type * and apply the min and max values. * * @return * @throws JspException */ protected Validator createValidator() throws JspException { if (null == _minimum && null == _maximum){ throw new JspException("a minimum and / or a maximum have to be specified"); } ELContext elContext = FacesContext.getCurrentInstance().getELContext(); if (null != _minimum){ _min = getValue(_minimum.getValue(elContext)); } if (null != _maximum){ _max = getValue(_maximum.getValue(elContext)); } if (null != _minimum && null != _maximum){ if (!isMinLTMax()){ throw new JspException("maximum limit must be greater than the minimum limit"); } } return super.createValidator(); }
return super.createValidator();