You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Thomas Matthijs <li...@selckin.be> on 2017/10/03 09:46:48 UTC
ListItemModel readonly wicket 8.x
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,
Re: ListItemModel readonly wicket 8.x
Posted by Thomas Matthijs <li...@selckin.be>.
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 <sv...@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,
Re: ListItemModel readonly wicket 8.x
Posted by Sven Meier <sv...@meiers.net>.
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,
Re: ListItemModel readonly wicket 8.x
Posted by 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,