When I removed value part then it works. I don't need value part at all? One more question, if I have two <s:datetimepicker-s> in <s:form> how can I format them to be shown one along another in jsp, and not one below another as default ?
-- Thx, Milan ----- Original Message ---- From: Milan Milanovic <[EMAIL PROTECTED]> To: Struts Users Mailing List <user@struts.apache.org> Sent: Wednesday, May 14, 2008 4:14:41 PM Subject: Re: [Struts 2] Dojo datetimepicker - simple I also get this exception for this:java.text.ParseException: Unparseable date: "fromDate"at java.text.DateFormat.parse(Unknown Source) at org.apache.struts2.components.DateTimePicker.format( at org.apache.struts2.components.DateTimePicker.evaluateParams( at org.apache.struts2.components.UIBean.end( at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(DateTimePicker.java:309)DateTimePicker.java:202)UIBean.java:481)ComponentTagSupport.java:43) ... -- Milan ----- Original Message ---- From: Milan Milanovic <[EMAIL PROTECTED]> To: Struts Users Mailing List <user@struts.apache.org> Sent: Wednesday, May 14, 2008 3:57:19 PM Subject: [Struts 2] Dojo datetimepicker - simple Hi, I have in my action class Date field with get/set methods, and when I try to show datetimepicker in my jsp, like this: <s:datetimepicker name="fromDate" value="fromDate" id="fromDate" displayFormat="dd.MM.yyyy" label="From date"/> It show only NaN.NaN.0NaN information in place of datetimepicker, and this debug info: DEBUG: invalid date string: fromDate DEBUG: DEPRECATED: dojo.widget.DropdownDatePicker date attributes must be passed in Rfc3339 format -- will be removed in version: 0.5 What is the problem ? I created Date before showing this page: fromDate = new Date(); -- Thx, Milan Milanovic