Wicket
  1. Wicket
  2. WICKET-989

DatePicker: NaN if numerical input cannot be parsed

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-beta3
    • Fix Version/s: 1.3.1
    • Component/s: wicket-datetime
    • Labels:
      None
    • Environment:
      firefox 2.0.0.6

      Description

      We have a DatePicker added to a DateTextField. If the input in the textfield is numerical but not a correct Date, for example 123, the DatePicker shows a calendar with only NaN.

      When the input is either correct of completely wrong ("xxx") the DatePicker works fine.

      1. WICKET-989.patch
        0.9 kB
        Gerolf Seitz

        Issue Links

          Activity

          Hide
          Gerolf Seitz added a comment -

          DatePicker is part of wicket-datetime (not wicket-extensions)

          Show
          Gerolf Seitz added a comment - DatePicker is part of wicket-datetime (not wicket-extensions)
          Hide
          Gerolf Seitz added a comment -

          if the date entered in the textbox is not valid, the datepicker doesn't use it to preselect the date in the calendar.
          in that case, any previously selected date remains selected.

          Show
          Gerolf Seitz added a comment - if the date entered in the textbox is not valid, the datepicker doesn't use it to preselect the date in the calendar. in that case, any previously selected date remains selected.
          Hide
          Gerolf Seitz added a comment -

          reopened: http://www.nabble.com/DatePicker-NaN-tf4475178.html
          this may have happened in the course of a YUI upgrade.

          Show
          Gerolf Seitz added a comment - reopened: http://www.nabble.com/DatePicker-NaN-tf4475178.html this may have happened in the course of a YUI upgrade.
          Hide
          Brandon Fuller added a comment -

          Verified fixed in 1.3.1.

          Show
          Brandon Fuller added a comment - Verified fixed in 1.3.1.

            People

            • Assignee:
              Unassigned
              Reporter:
              Ivana Cace
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development