You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/04/18 21:22:09 UTC

DO NOT REPLY [Bug 19161] New: - validateDate javascript validation doesn't handle non-strict date parsing

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19161

validateDate javascript validation doesn't handle non-strict date parsing

           Summary: validateDate javascript validation doesn't handle non-
                    strict date parsing
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Validator Framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: m.oconnor@finalist.com


The validateDate javascript function only validates date fields where the 
'dataPatternStrict' property has been set, ignoring the 'dataPattern' property.


E.g. the following validator.xml snippet:




         <field property="searchDate"


                depends="date">


            <arg0 key="clientZoekForm.zoekGeboorteDatum.displayName"/>


            <var>


               <var-name>datePattern</var-name>


               <var-value>dd-MM-yyyy</var-value>


            </var>


         </field>




..describes a field searchDate that should be 'leniently' validated (so 
"1/1/2003" is OK).  The current validateDate javascript function in the 
validator-rules.xml doesn't handle this.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org