[ https://issues.apache.org/jira/browse/WICKET-6451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sven Meier resolved WICKET-6451. -------------------------------- Resolution: Fixed Fix Version/s: 8.0.0-M8 FormComponent#updateCollectionModel() supports sets now, even when they are unmodifiable or null. > Components with collection models do not support unmodifiable or empty sets > --------------------------------------------------------------------------- > > Key: WICKET-6451 > URL: https://issues.apache.org/jira/browse/WICKET-6451 > Project: Wicket > Issue Type: Improvement > Components: wicket > Affects Versions: 8.0.0-M6 > Reporter: Kamil > Assignee: Sven Meier > Priority: Minor > Fix For: 8.0.0-M8 > > Attachments: showcase-hiddenException.zip > > > 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: > {code} > 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]] > {code} > 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 -- This message was sent by Atlassian JIRA (v6.4.14#64029)