I am using the MyFaces 1.1 ValidateRegExpr tag to validate the input from a user against a regular expression.
I would like to be able to dynamically assign the regex pattern via code, but according to http://myfaces.apache.org/commons11/myfaces-validators11/tagdoc/mcv_validateRegExpr.html the attribute pattern does not support Expression Language.
The markup in my JSP file is supposed to look like this:
<tc:in value="${dataBean.currentBean.field}">
<mcv:validateRegExpr
pattern="${dataBean.currentBean.validationRegEx}"
message="${dataBean.currentBean.validationMessage" />
</tc:in>
What is the preferred way of dynamically assigning attribute values to jsp controls that do not support EL?