You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Milan Milanovic <mi...@yahoo.com> on 2008/05/14 15:53:02 UTC

[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: pregled.odPeriod
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