cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <>
Subject Re: svn commit: r357004 - in /cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/datatype/convertor:
Date Thu, 15 Dec 2005 11:39:35 GMT

Il giorno 15/dic/05, alle ore 12:24, ha scritto:

> Author: ugo
> Date: Thu Dec 15 03:23:56 2005
> New Revision: 357004
> URL:
> 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 is down :(


Ugo Cei
Tech Blog:
Open Source Zone:
Wine & Food Blog:

View raw message