cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Heussen" <heus...@rheinland-online.com>
Subject [Woody] wd:datatype base="date" -> setLenient(false) behavior
Date Fri, 19 Dec 2003 14:22:45 GMT
If the input of the date form field is for example "31.02.2004" after
submission this value is automatically set to "02.03.2004".

How can I change this behavior? Is there a attribute I can set in the woody
binding or definition file to get the behavior like using the
"setLenient(false)" method in java?

Thanks for your help!

Markus


woody defintion:

<wd:field id="vn_geburtsdatum" required="true">
	<wd:label>Geburtsdatum</wd:label>
	<wd:datatype base="date">
		<wd:convertor>
			<wd:patterns>
				<wd:pattern>dd.MM.yyyy</wd:pattern>
			</wd:patterns>
		</wd:convertor>
	</wd:datatype>
</wd:field>


woody binding:

<wb:value id="vn_geburtsdatum" path="v:Geburtsdatum">
	<wd:convertor datatype="date" type="formatting">
		<wd:patterns>
			<wd:pattern>yyyy-MM-dd</wd:pattern>
		</wd:patterns>
	</wd:convertor>
</wb:value>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message