[ http://issues.apache.org/jira/browse/TOMAHAWK-169?page=all ]
Mike Kienenberger closed TOMAHAWK-169:
--------------------------------------
Fix Version: 1.1.2-SNAPSHOT
Resolution: Fixed
Converted existing tomahawk and sandbox validators.
At some point, the standard JSF validators should be cloned to tomahawk so they
could also inherit this behavior.
> add message attribute to all validators
> ---------------------------------------
>
> Key: TOMAHAWK-169
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-169
> Project: MyFaces Tomahawk
> Type: Improvement
> Components: Validators
> Reporter: Joris Verschoor
> Assignee: Mike Kienenberger
> Priority: Minor
> Fix For: 1.1.2-SNAPSHOT
> Attachments: RegExprValidator.java.patch.txt,
> ValidateRegExprTag.java.patch.txt,
> tomahawk_validate_regexpr_attributes.xml.patch.txt,
> validateRegExpr.xml.patch.txt
>
> Added a message attribute to the rexexvalidator [and all other validators
> -mlk]. If the message attribute is set, the message attribute value will be
> used as the error message key instead. 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