struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38767] New: - Support for variable "var" validation parameters
Date Thu, 23 Feb 2006 16:25:35 GMT
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: hrabago@apache.org


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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message