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

Palette is incompatible with ListMultipleChoice in its use of the model

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.7
    • 1.4.9, 1.5-M1
    • wicket-extensions
    • None

    Description

      Palette, like the listmultiplechoice component, modifies the object (a list) in-place. Both components have the same behavior in their updateModel documentation, but the implementation differs. Whereas ListMultipleChoice invokes getModel().setObject(), Palette uses setDefaultModelObject(). This has the consequence that it never invokes the setObject method as that is guarded by a model comparator.

      Suggested fix is to use the same logic in both updateModel implementations.

      Attachments

        1. WICKET-2843.patch
          0.6 kB
          Frank van Lankvelt

        Activity

          People

            ivaynberg Igor Vaynberg
            lankvelt Frank van Lankvelt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: