What exactly does not work ?

I had problems with forms, dates and i18n, too.

With some debugging I figured out that the form engine took the hosts locale as default, so no matter which locale I set in the browser, the date formatter always took the hosts locale, so setting the locale for the form instance with the user agents locale in flow (javaflow in my case) did the job in my application.

regards,
tom

Aurélien DEHAY wrote:

Hi all.

I'm trying to i18n the date in a form. I've got no problem for
displaying the i18nized date, but I wonder how I could, when the client
edit the form, display him a correct date.

I've got:
<fd:convertor type="formatting" variant="date" style="short">
  <fd:patterns>
     <fd:pattern>MM/dd/yyyy</fd:pattern>
     <fd:pattern locale="fr">dd-MM-yyyy</fd:pattern>
  </fd:patterns>
</fd:convertor>

in my form_definition.xml file and
<fd:convertor type="formatting" datatype="date">
  <fd:patterns>
     <fd:pattern>MM/dd/yyyy</fd:pattern>
  </fd:patterns>
</fd:convertor>

in my form_binding.xml file, but the behaviour is really strange. I
think I've missed something.

Can someome give me the trick? Regards.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to