please display contents of struts.date.format
for both *en_UK.properties and
*de_DE.properties files

Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "Musachy Barroso" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, May 07, 2007 8:05 PM
Subject: Re: Correct usage of datetimepicker?


Using Date for the action field is the way to go. The selected value is
submited in RFC 3339 format (that can me modified using the saveFormat
attribute, which shouldn't have been public on the first place). I'm not
really sure how it would work if the client has javascript disabled.

musachy

On 5/7/07, Torsten Römer <[EMAIL PROTECTED]> wrote:

I'm a bit unsure about a few things around datetimepicker.

What type should the fields in my action class be? I am currently using
java.util.Date, it works fine for request_locale=de_DE but I get a
"Invalid field value for field ..." error for request_locale=en_UK and
the date redisplayed is "NaN.NaN.aN". I don't quite understand this,
because the API doc says: "The value sent to the server is typically a
locale-independent value in a hidden field as defined by the name
attribute" - but it seems the locale matters anyway?

What also confuses me, is the displayFormat attribute. If I set it to
e.g. "yyyy-MM-dd", I always get the "Invalid field value for field ..."
error, regardless of the request_locale.
I am also a bit unsure about the format and saveFormat attributes. I
played with them, but they did not seem to make any difference.

I also wonder how to handle the situation where a user has Javascript
disabled, in which case the date field + icon are not shown at all.

I am using Struts2 2.0.6.

Torsten

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




--
"Hey you! Would you help me to carry the stone?" Pink Floyd


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

Reply via email to