Details

      Description

      Select component loses selected option and shows the first option in some situations (one example is when you try to submit a form, but there are validation errors).

      It was working fine in 1.4.18, but it's broken in 1.4.19.This must be caused by the solution from this issue https://issues.apache.org/jira/browse/WICKET-3962
      I think the problem is likely in Select.isSelected method, where String[] paths = getInputAsArray() is actually an array of uuid-s, so uuid-s are compared to paths.

      I haven't tested wicket 1.5, but this problem may also affect 1.5 versions.

      1. myproject.zip
        15 kB
        Mikk Lauringson

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          4d 2h 54m 1 Sven Meier 06/Dec/11 13:19
          Sven Meier made changes -
          Fix Version/s 1.4.20 [ 12318545 ]
          Fix Version/s 1.5.4 [ 12319051 ]
          Fix Version/s 6.0.0 [ 12315431 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Hide
          Sven Meier added a comment -

          completed WICKET-3962 changes in Select#isSelected(SelectionOption)

          Show
          Sven Meier added a comment - completed WICKET-3962 changes in Select#isSelected(SelectionOption)
          Sven Meier made changes -
          Assignee Sven Meier [ svenmeier ]
          Sven Meier made changes -
          Link This issue is broken by WICKET-3962 [ WICKET-3962 ]
          Mikk Lauringson made changes -
          Field Original Value New Value
          Attachment myproject.zip [ 12505871 ]
          Hide
          Mikk Lauringson added a comment -

          Here's a quickstart project to demonstrate the problem.

          Show
          Mikk Lauringson added a comment - Here's a quickstart project to demonstrate the problem.
          Mikk Lauringson created issue -

            People

            • Assignee:
              Sven Meier
              Reporter:
              Mikk Lauringson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development