DropDownDatePicker handles initial value differently between IE and FF
----------------------------------------------------------------------

                 Key: TAPESTRY-1143
                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1143
             Project: Tapestry
          Issue Type: Bug
          Components: JavaScript
    Affects Versions: 4.1.1
         Environment: IE 6 sp2 + all updates, latest FF 1.5
            Reporter: Greg Woolsey
            Priority: Critical


My page has 2 drop-down date picker components, start and end date.  The 
initial values are java.util.Date objects with values for 01/01/2006 and 
01/01/2100 respectively.  In IE, the Widgets appear properly with these 
starting text values, including the 4-digit years.  In Firefox, the start date 
appears as "01/01/06" and the end date as "01/01/00" which is incorrect, as 
this translates to "01/01/2000" with the default date logic.

I don't know why the behavior is different between platforms, but it is wrong.  
Here is the JavaScript Widget creation call generated by Tapestry (same on both 
platforms):

        tapestry.widget.synchronizeWidgetState("startDate", 
"DropdownDatePicker", 
{"inputId":"startDate","inputName":"startDate","iconAlt":"Select a 
Date","displayFormat":"MM/dd/yy","lang":"en_US","value":1136102400000,"disabled":false});
    

        tapestry.widget.synchronizeWidgetState("endDate", "DropdownDatePicker", 
{"inputId":"endDate","inputName":"endDate","iconAlt":"Select a 
Date","displayFormat":"MM/dd/yy","lang":"en_US","value":4102473600000,"disabled":false});



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to