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