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

DateTextField and DatePicker do not work properly with four digit year patterns in 1.4.7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.4.7
    • None
    • wicket-extensions
    • Windows XP
      Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
      Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode)
      Tomcat 6.0.20

    Description

      Date patterns that contains four digit year does not work properly with DatePicker and DateTextField in 1.4.7.

      Steps to reproduce the error:
      1. Create a form with a DateTextField, a DatePicker with a four digit year pattern like yyyy-MM-dd and a submit button.
      2. Run the project. Click on the DatePicker and select a date. For example 2010-03-25.
      3. Submit the Form and check what's submitted to the server. Server receives the date as 0010-03-25.

      A quickstart to reproduce the problem is attached.

      Attachments

        1. quickstart.zip
          8 kB
          Marcin Palka

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              mpalka Marcin Palka
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: