yes: List options = Arrays.asList("a", "b", "c"); add(new ListMultipleChoice("select", new Model((Serializable)Arrays.asList("b")), options));
On Mon, Oct 26, 2009 at 11:06 AM, Peter Arnulf Lustig <uuuuu...@yahoo.de>wrote: > and in the html it is also showed as "selected" ? > > > > ----- Ursprüngliche Mail ---- > Von: Pieter Degraeuwe <pieter.degrae...@systemworks.be> > An: users@wicket.apache.org > Gesendet: Montag, den 26. Oktober 2009, 13:59:36 Uhr > Betreff: Re: ListMultipleChoice - Pre fill out > > just make sure that the model, which contains the 'selected' items, does > already contain the selected items. > > Your model probably maps to an object property. (in this case, the property > is a collection(List/set) . So, add te 'pre-selection' to the collection, > and the ListMultipleChoice will follow.. > > On Mon, Oct 26, 2009 at 1:53 PM, Peter Arnulf Lustig <uuuuu...@yahoo.de > >wrote: > > > Hi, > > > > how can I "pre-select" some List-Items, when showing the form with the > > ListMultipleChoice? > > > > Thank you for some advice! > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > -- > Pieter Degraeuwe > Systemworks bvba > Belgiëlaan 61 > 9070 Destelbergen > GSM: +32 (0)485/68.60.85 > Email: pieter.degrae...@systemworks.be > visit us at http://www.systemworks.be > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pedro Henrique Oliveira dos Santos