Might be that Arrays.asList returns an unmodifiable list and palette needs
a modifiable one (seems to me reading the exception that is thrown).

> Ivo van Dongen wrote:
>> Ivana Cace wrote:
>>
>>> The problems i've had with wicket Palette component are now solved
>>> (also
>>> thanks to Rommert and Wouter).
>>>
>>> One of the wicket peculiarities relates to DAO output.  The Palette
>>> Constructor takes (among other things) 2 lists. These Lists come from
>>> the DAO and need to be real ArrayLists for the component to be able to
>>> perform it actions.
>>> See also twiki:
>>> http://www.openprojectservices.org/twiki/bin/view/Developers/OpsAdminTechnicalInfo
>>>
>>> cheers,
>>>
>>> Ivana
>>>
>>>
>>>
>> That sounds horrible and there isn't even a small mentioning in the
>> javadoc :(. Did  you mention this on the wicket mailinglist?
>>
>> Ivo
>>
>>
> Do you use new Model(arrayList) or Model.valueOf(arrayList). the Model
> constructor only takes objects that are Serializable, so it will
> complain because the List interface does not implement Serializable. The
> valueOf method can take any list and return a model based on that.
>
> Pallete is a wicket-extensions component. Does a DropDownChoice (for
> example) have the same erroneous behaviour?
>
> --
> Matthijs Wensveen
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 4230000
> F +31 20 4223500
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Ops-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ops-developers
>



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Ops-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ops-developers

Reply via email to