Tapestry
  1. Tapestry
  2. TAPESTRY-1143

DropDownDatePicker handles initial value differently between IE and FF

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.1
    • Component/s: JavaScript
    • Labels:
      None
    • Environment:
      IE 6 sp2 + all updates, latest FF 1.5

      Description

      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}

      );

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Greg Woolsey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development