Il giorno 15/dic/05, alle ore 12:24, [EMAIL PROTECTED] ha scritto:
Author: ugo Date: Thu Dec 15 03:23:56 2005 New Revision: 357004 URL: http://svn.apache.org/viewcvs?rev=357004&view=rev Log: [Forms] Added "lenient" attribute to date convertors.
What this change does is adding a new "lenient" attribute to the CForms date convertors (formatting AND icu4j). By default, "lenient" is true and what this means is that a date like "12-32-2005" (Dec. 32nd) is silently converted to "01-01-2006" due to the way Java's DateFormat class works.
But if you set lenient="false", a date like that will be rejected and will not pass validation.
Now, I'd like to document this, but cocoon.zones.apache.org is down :( Ugo -- Ugo Cei Tech Blog: http://agylen.com/ Open Source Zone: http://oszone.org/ Wine & Food Blog: http://www.divinocibo.it/