Hi Sven, thanks a lot - works fine for me.
Christoph > Am 17.04.2015 um 08:47 schrieb Sven Meier <s...@meiers.net>: > > I'd solve it with a custom model: > > IModel<List<A>> listModel = new LoadableDetachableModel() { > protected List<A> load() { > List<A> as = new ArrayList<>(); > > as.addAll(method.retrieveAlist()); > > as.add(...); > > return as; > } > }); > > Positive side effect: The list of object is not kept in the session and > always up-to-date. > > Have fun > Sven > > > On 17.04.2015 01:50, Chris wrote: >> 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 >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org