I have a DateField for entering Date of Birth. If you enter 00/01/2000 the
database ends up with 12/01/1999 which is not at all what I would want since
00/01/2000 is (should be) an invalid date. The Java documentation says this:

By default, parsing is lenient: If the input is not in the form used by this
object's format method but can still be parsed as a date, then the parse
succeeds. Clients may insist on strict adherence to the format by calling
setLenient(false). 

It seems to me DateField should probably call setLenient(false) or at the
very least provides a lenient parameter to allow setting it to false.
Personally I think the default should be strict.

Should I create as issue for this? It would be nice if this could be in the
next release because from my perspective this is a major problem. I don't
mind providing the patch.

Thanks
Barry



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/DateField-appears-to-use-lenient-date-parser-Bug-tp5715631.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to