Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1143

DropDownDatePicker handles initial value differently between IE and FF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Cannot Reproduce
    • 4.1.1
    • 4.1.1
    • JavaScript
    • None
    • 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}

      );

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            gwoolsey Greg Woolsey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: