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 2004/11/01 18:07:54 UTC
DO NOT REPLY [Bug 31790] -
The JavaScript function validateDate() does not distinguish between datePattern and datePatternStrict
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=31790>.
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=31790
The JavaScript function validateDate() does not distinguish between datePattern and datePatternStrict
jon@kloptosky.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Additional Comments From jon@kloptosky.net 2004-11-01 17:07 -------
I'm also having problems with this in 1.2.4. The javascript that's generated
from the html:javascript creates a function validateDate(...). That function
does have a check to get the correct datePattern or datePatternStrict object.
However, it seems that the generated regular expressions are the problem:
dateRegexp = new RegExp("^(\\d{2})[" + delim1 + "](\\d{2})[" + delim2 + "](\\d
{4})$");
The \\d{2} enforces datePatternStrict. For datePattern, I think we'll need \\d
{1,2}.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org