You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ravi_eze <ra...@ivycomptech.com> on 2008/03/07 11:13:10 UTC

S2- DateTimePicker is not working. Display Format: dd-MMM-yy HH:m:ss

hi,

I need to display the date as 21-jan-08 20:20:20 and when user changes it,
the corresponding value should get populated in the Action class. I see that
the date object is being displayed in the format specified but when getting
converted back into the action class its throwing error. The Object that
holds the date object is held in session. I proceeded as follows. 

I gave the following in the tag:
<s:datetimepicker name="currentEvent.criterion.startDate" adjustWeeks="true"
toggleDuration="200"
  toggleType="fade" displayFormat="dd-MMM-yy HH:m:ss" id="startDateId"
theme="simple" />

<u>The log file is showing: </u>
2008-03-07 00:24:40,204 ERROR
(com.opensymphony.xwork2.interceptor.ParametersInterceptor:204) -
ParametersInterceptor - [setParameters]: Unexpected Exception caught setting
'currentEvent.criterion.endDate' on 'class com.admin.EdsWizardAction: Error
setting expression 'currentEvent.criterion.endDate' with value
'[Ljava.lang.String;@1b7f9f7'

When i tried debugging the source code i found that S2 is trying out parsing
with DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.SHORT and finally with
default. 

any ideas?

regards,
ravi 
-- 
View this message in context: http://www.nabble.com/S2--DateTimePicker-is-not-working.-Display-Format%3A-dd-MMM-yy-HH%3Am%3Ass-tp15891129p15891129.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org