DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38767>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38767

           Summary: Support for variable "var" validation parameters
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Shale
        AssignedTo: dev@struts.apache.org
        ReportedBy: [EMAIL PROTECTED]


The Commons Validator support specifies validation "var"s as tag attributes:

<s:commonsValidator type="date"
       datePatternStrict="MM/dd/yyyy"
                     arg="#{messages['prompt.expirationDate']}"
                  server="true" 
                  client="true"/>

'datePatternStrict' is a parameter for the date validator.  Other validators
have other parameters.  The support can be enhanced by specifying parameters
using another tag:

<s:commonsValidator type="date"
                     arg="#{messages['prompt.expirationDate']}"
                  server="true" 
                  client="true">
    <s:validatorVar name="datePatternStrict" value="MM/dd/yyyy"/>
</s:commonsValidator>

This allows custom validators to use their own parameters, or updated versions
of the built-in validators to use new parameters.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to