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

Components with collection models do not support unmodifiable or empty sets

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 8.0.0-M6
    • 8.0.0-M8
    • wicket
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: