cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Lurk" <>
Subject Validation problem by using widget field with datatype base="date"
Date Thu, 23 Mar 2006 17:59:13 GMT

I have a validation problem by using a widget field with datatype base="date".
The sitemap and model looks like the following:

----- 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 type="i18n">
      <map:parameter name="locale" value="en-EN"/>
    <map:transform src="test-styling.xsl"/>
----- snip -----

----- snip -----
<fd:field id="TestDate" required="true">
  <fd:datatype base="date"/>
  <fd:label><i18n:text i18n:key="TestDate"/></fd:label>
----- 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:
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

Thanks for your help

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message