It's not possible.

Look at the ListModel's consructor.
        
public ListModel(List<T> list)
{
        setObject(list);
}
        
And the setObject() method implementation, which is in the superclass, is

@Override
public void setObject(T object)
{
        if (!(object instanceof Serializable))
        {
                object = createSerializableVersionOf(object);
        }
        this.object = object;
}



François Meillet





Le 17 avr. 2015 à 01:50, Chris <chris...@gmx.at> a écrit :

> Hi all,
> 
> I have a listmodel:
> 
>      IModel<List<A>> listModel = new 
> ListModel<List<A>>(method.retrieveAlist());
> 
> Is it possible to feed the model from the original list but add additional 
> elements of type A to the model only, without being mapped back to the list?
> 
> thanks a lot,
> Chris
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

Reply via email to