add X in the CheckBoxMultipleChoice model collection. e.g. IModel<Collection> multipleChoiceModel = (...); checkBoxMultipleChoiceComponent.setDefaultModel( multipleChoiceModel ); multipleChoiceModel.getObject().add( X );
On Tue, Apr 5, 2011 at 2:57 PM, eugenebalt <eugeneb...@yahoo.com> wrote: > I have a CheckBoxMultipleChoice with some checkboxes. > > I also have a String, X. If there is a checkbox in the list whose title > matches X, then I have to pre-select it (select it in the model). > > Any idea how to do that? Thanks > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Pre-Select-CheckBox-in-CheckBoxMultipleChoice-tp3428739p3428739.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pedro Henrique Oliveira dos Santos