You can do it without an ugly cast now i believe. And for the model to work you have to override getListItemModel and then implement your own ListItemModel, since setObject is final.
On Tue, Oct 3, 2017 at 2:54 PM, Sven Meier <s...@meiers.net> wrote: > Hi, > > this was changed because of the generics wildcards: ListItemModel had to do > an ugly cast to set an item. > Since this isn't used by Wicket itself, we made the model read-only. > > You can get the ListViews model object and do the change in the list yourself. > > Regards > Sven > > Am 3. Oktober 2017 11:50:44 MESZ schrieb Thomas Matthijs <li...@selckin.be>: >>This was removed as part of WICKET-5350 which makes no sense to me, >>since ListView etc are not readonly, they have moveDownLink etc that >>manipulate it >> >>On Tue, Oct 3, 2017 at 11:46 AM, Thomas Matthijs <li...@selckin.be> >>wrote: >>> Hello, >>> >>> Seems like ListItemModel used by ListView etc went readonly in wicket >>8. >>> Could this be added the migration guide? >>> >>> Anyone have a tip on how to migrate from this? >>> >>> Regards,