Questions that I's like to ask: a) how do I force the tag to load initially with a value from the property? If I set the property to some non-null value, it is still not displayed.
The showcase app uses an easy way, it predefines the initial value this way: <s:dropdowndatetimepicker name="dddp3" value="2006-06-26" language="en-us" />
Which means the value is already formatted for the tag by hand. How to tell the tag to read my value from the property? Whatever I do - it displays empty date field when loaded from action.
b) submitting the form with date I'd like to display the date in format 'dd-MM-yyyy' (Poland) And if I set it to the tag - it works for displaying. But it uses the same format to send the data when the field is submitted. And this causes an exception because validators cannot parse it:
Then I thought about using the saveFormat attribute for this purpose but it still fails. And here is the GET url generated by the browser for two Date properties on a form using dropdowndatetimepicker with the settings shown above:
Such request produces stacktrace. Looks like the datepicker has empty names for the additional properties containing values in saveFormat.
Using Struts 2.0.2
Dariusz Wojtas
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)