Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
Description
As from version 1.1.7 validateRegExpr tag desn't support value binding in pattern field.
ValidateRegExprTag.java
Version 1.1.6 has:
protected Validator createValidator() throws JspException {
FacesContext facesContext = FacesContext.getCurrentInstance();
setValidatorId(RegExprValidator.VALIDATOR_ID);
RegExprValidator validator = (RegExprValidator)super.createValidator();
if (_pattern != null)
{
if (UIComponentTag.isValueReference(_pattern))
else
{ validator.setPattern(_pattern); }}
return validator;
}
Version 1.1.7 has:
protected Validator createValidator() throws JspException {
FacesContext facesContext = FacesContext.getCurrentInstance();
setValidatorId("org.apache.myfaces.validator.RegExpr");
org.apache.myfaces.custom.regexprvalidator.RegExprValidator validator = (org.apache.myfaces.custom.regexprvalidator.RegExprValidator)super.createValidator();
if (_pattern != null)
return validator;
}