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

Components with collection models do not support unmodifiable or empty sets

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.0.0-M6
    • Fix Version/s: 8.0.0-M8
    • Component/s: wicket
    • Labels:
      None

      Description

      When object returns Collections.unmodifiableSet() it is obvious that model object can not be updated.
      But the exception that was thrown causes me to spend hours until I found out that:

      Last cause: Could not convert value: [] to type: java.util.Set. Could not find compatible converter.
      WicketMessage: An error occurred while trying to set the collection attached to [BootstrapMultiSelect [Component id = children]]
      

      Is not about converter but about unmodifialble set, because the real exception was hidden!

      1)Run the app
      2)Click submit
      3)Caused by User#L30

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                svenmeier Sven Meier
                Reporter:
                eximius Kamil
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: