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

Palette is incompatible with ListMultipleChoice in its use of the model

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.7
    • Fix Version/s: 1.4.9, 1.5-M1
    • Component/s: wicket-extensions
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: