Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3598

DatePicker issues with locale medium date format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.17
    • 1.5-RC4
    • wicket-datetime
    • None

    Description

      DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));

      Case 1:

      • en-US locale
      • for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM

      Case 2:

      • pl-PL locale
      • 2010-10-25 is in the DateTextField
      • DatePicker opens on April 2031 rather than October 2010

      I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.

      I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

      Attachments

        1. wicket-3598.zip
          6 kB
          Attila Király
        2. unit-WICKET-3598-1-locale.patch
          2 kB
          Attila Király
        3. issue3598.zip
          20 kB
          Andrea Del Bene
        4. fix-WICKET-3598-2-js-date-format-parse.patch
          6 kB
          Attila Király
        5. fix-WICKET-3598-1-locale.patch
          3 kB
          Attila Király

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            jrogoznicki Jacek Rogoźnicki
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: