Hi
I have a validation problem by using a widget field with datatype base="date".
The sitemap and model looks like the following:
Sitemap:
----- snip -----
...
<map:pipeline internal-only="true">
<map:match pattern="*-display-pipeline">
<map:generate src="TestTemplate.xml"/>
<map:transform type="forms">
<map:parameter name="locale" value="en-EN"/>
</map:transform>
<map:transform type="i18n">
<map:parameter name="locale" value="en-EN"/>
</map:transform>
<map:transform src="test-styling.xsl"/>
<map:serialize/>
</map:match>
</map:pipeline>
...
----- snip -----
Model:
----- snip -----
...
<fd:field id="TestDate" required="true">
<fd:datatype base="date"/>
<fd:label><i18n:text i18n:key="TestDate"/></fd:label>
</fd:field>
...
----- snip -----
If I choose after running with the help of the calendar a date (day)
it will be taken over in the input field in the following format:
3/23/06
That's correct.
But if I press now the submit button the validation of the date failed
with the message "Not a valid date"!!!
If I change the language in the sitemap to German (de-DE) I get the
date 23.03.06 and no validation problem. In this case if works fine.
What's wrong?
Is it possible to solve the problem by using the i18n transformer
(<i18n:date ... />)?
If yes how?
Remark: I'm using Cocoon 2.1.8 and the german version of Mozilla
Firefox 1.5.0.1.
Thanks for your help
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]