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

          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)
          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.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development