cocoon-dev mailing list archives

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

Il giorno 15/dic/05, alle ore 12:24, ugo@apache.org 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/



Mime
View raw message