[ 
http://issues.apache.org/jira/browse/MYFACES-801?page=comments#action_12357272 
] 

Mike Kienenberger commented on MYFACES-801:
-------------------------------------------

Yes, we should add a "message" tag to all validators, when possible.
There was talk of adding this to JSF 1.2, but I don't think it made it in.  
Instead, they were looking at a "converterMessage" and "validatorMessage" added 
to UIInput components.

https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=81

I've implemented my CompareToValidator with such an attribute as well.

http://cvs.sourceforge.net/viewcvs.py/jsf-comp/componentsandbox/src/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java?view=markup


> RegExprValidatorTag patch: message attribute
> --------------------------------------------
>
>          Key: MYFACES-801
>          URL: http://issues.apache.org/jira/browse/MYFACES-801
>      Project: MyFaces
>         Type: Improvement
>     Reporter: Joris Verschoor
>  Attachments: RegExprValidator.java, ValidateRegExprTag.class, 
> ValidateRegExprTag.java
>
> Added a message attribute to the rexexvalidator. If the attribute is set, 
> that will be used as the errormessage. For example:
>       <h:inputText id="name" value="#{bean.name}" required="true">
>             <t:validateRegExpr message="#{errors['NameNoNumbers']}" 
> pattern="\D*" />
>     </h:inputText>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to