You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Greg Woolsey (JIRA)" <ta...@jakarta.apache.org> on 2006/11/08 19:24:54 UTC

[jira] Created: (TAPESTRY-1143) DropDownDatePicker handles initial value differently between IE and FF

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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1143) DropDownDatePicker handles initial value differently between IE and FF

Posted by "Greg Woolsey (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-1143?page=comments#action_12448225 ] 
            
Greg Woolsey commented on TAPESTRY-1143:
----------------------------------------

Also, in IE, with the above mask, when a field is edited manually, the onchange event reformats the date to a 4 digit year, but on FF it reformats to a 2 digit year.

In Java, the mask "MM/dd/yy" accepts both 2 and 4 digit years, which is what I want the client side to do also, so validation is consistent.

> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Resolved: (TAPESTRY-1143) DropDownDatePicker handles initial value differently between IE and FF

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-1143?page=all ]

Jesse Kuhnert resolved TAPESTRY-1143.
-------------------------------------

    Fix Version/s: 4.1.1
       Resolution: Cannot Reproduce
         Assignee: Jesse Kuhnert

"Works for me" in firefox. Maybe I've updated dojo or done something differently since you originally filed this issue.

> 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
>         Assigned To: Jesse Kuhnert
>            Priority: Critical
>             Fix For: 4.1.1
>
>
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org