You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ketil Holden <Ke...@invenia.no> on 2008/10/14 11:21:46 UTC

locale formatted date input via textfield

Hi.

I'm using a a textfield that maps to a date. That works fine for American  style dates, however my locale (NO) uses dd.MM.yyyy. I've searched and searched for this but can't find an answer...

I've checked that my Locale in fact is set to no-NO.

The textfield maps to a java.util.Date type. An American date is converted fine.

Here's what struts says when I enter dd.MM.yyyy:
DEBUG [http-8443-Processor25] (XWorkConverter.java:320) - falling back to default type converter [com.opensymphony.xwork2.util.XWorkBasicConverter@c3e82b]
DEBUG [http-8443-Processor25] (XWorkConverter.java:388) - Property: validUntil
DEBUG [http-8443-Processor25] (XWorkConverter.java:389) - Class: model.Document
DEBUG [http-8443-Processor25] (XWorkConverter.java:278) - field-level type converter for property [validUntil] = none found
DEBUG [http-8443-Processor25] (XWorkConverter.java:388) - Property: document.validUntil
DEBUG [http-8443-Processor25] (XWorkConverter.java:389) - Class: actions.NewContract
DEBUG [http-8443-Processor25] (XWorkConverter.java:302) - global-level type converter for property [validUntil] = none found
DEBUG [http-8443-Processor25] (XWorkConverter.java:320) - falling back to default type converter [com.opensymphony.xwork2.util.XWorkBasicConverter@c3e82b]
DEBUG [http-8443-Processor25] (OgnlValueStack.java:183) - Error setting value

Ketil Holden
Systemutvikler
Invenia Consulting AS
Grønnegata 78-80
Postboks 540
9254 Tromsø

Tlf:   982 90 816
Fax: 777 57 501