You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Joris Verschoor (JIRA)" <de...@myfaces.apache.org> on 2005/11/09 13:19:21 UTC

[jira] Updated: (MYFACES-801) RegExprValidatorTag patch: message attribute

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

Joris Verschoor updated MYFACES-801:
------------------------------------

    Attachment: RegExprValidator.java

Sorry, no patch, just modified sourcecode.
Added message attribute.



> 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
>
> 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