Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

[Struts 2] Dojo datetimepicker - simple

Milan Milanovic

2008-05-14

Replies:

Author LoginPost Reply
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


   
©2008 gg3721.com - Jax Systems, LLC, U.S.A.