ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
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:

Re: ListMultipleChoice - Pre fill out

2009-10-26 Thread Pieter Degraeuwe
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

AW: ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
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

Re: ListMultipleChoice - Pre fill out

2009-10-26 Thread Pedro Santos
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

AW: ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
fantastic pedro! it works really great! - Ursprüngliche Mail Von: Pedro Santos pedros...@gmail.com An: users@wicket.apache.org Gesendet: Montag, den 26. Oktober 2009, 14:13:55 Uhr Betreff: Re: ListMultipleChoice - Pre fill out yes: List options = Arrays.asList(a, b, c); add(new