Great news! I have applied the patch for me, tested and it reads the property perfectly :) It is now correctly initialized. Good work. Thanks!
But some issue is still there - format of the data submitted with the form. If I use it this way: <s:dropdowndatetimepicker name="end" displayFormat="yyyy-MM-dd" language="pl" /> Produced URL: /my.action?=2006-12-25&end=2006-12-25 then it works. But if I change it to: <s:dropdowndatetimepicker name="end" displayFormat="dd-MM-yyyy" language="pl" /> Produced URL: /my.action?=2006-12-25&end=25-12-2006 Then it ends with a large stacktrace in the browser and logs (see WW-1577). The display format attribute works perfectly for displaying it on the form, but still not in the submitted form data. Each dropdowndatepicker creates a pair of properties. The 1st one is always unnamed and contains date in the correct format for parsing (I think). The 2nd format depends on the displayFormat. Maybe the property name could be controlled in the same way as it is done with autocompleter? <s:dropdowndatetimepicker name="end" displayFormat="dd-MM-yyyy" language="pl" /> It could mean: hidden 'end' field using the standard save format - matches the Date property in form displayed 'endDisplay' field using the display format - not needed in Form, may be ignored I know this is not something new, but if it works for autocompleter ... Best regards Dariusz Wojtas On 12/29/06, Musachy Barroso <[EMAIL PROTECTED]> wrote:
I logged a ticket for this issue, with a patch: https://issues.apache.org/struts/browse/WW-1579 The tag was not reading the value from properties. Now it will get the value from the property specified in "name", the value needs to be of type Date, or any object whose toString method returns an string that can be parsed into a date, using the "displayFormat", or SimpleDateFormat.parse(). I removed the "saveFormat" attribute because it is confusing, the possible values for it were "rfc", "iso" or "unix". This is Dojo stuff. Now it will always be "rfc" (RFC 3379) regards musachy
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]