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:24:24 UTC
[jira] Commented: (MYFACES-801) RegExprValidatorTag patch: message attribute
[ http://issues.apache.org/jira/browse/MYFACES-801?page=comments#action_12357124 ]
Joris Verschoor commented on MYFACES-801:
-----------------------------------------
Also in the TLD a non-required attribute 'message' should be added.
The files could contain compile errors. We have a different coding style, and implemented this in our own package, so it was easier to paste some stuff in.
btw, why does myfaces mix coding styles????
> 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