The selection variable is a collection or a wicket model with an object of collection. You can preselect you values by using the same classes there.
Consider this Form<String> form = new Form<String>( "form" ); String[] someStrings = new String[]{ "Wicket" , "Hibernate", "Maven", "Spring" }; String[] other = new String[]{ "Wicket" , "Hibernate", "Maven", "Spring", "C#", "NHibernate" }; CheckGroup<String> group = new CheckGroup<String>( "group", Arrays.asList( someStrings ) ); ListView<String> stringView = new ListView<String>( "stringView" , Arrays.asList( other ) ){ private static final long serialVersionUID = 1L; @Override protected void populateItem(ListItem<String> item) { item.add( new Check<String>( "item", item.getModel() )); } }; group.add( stringView ); form.add( group ); add( form ); Here the someStrings will be checked, that is ( "Wicket" , "Hibernate", "Maven", "Spring" ). NHibernate and C# will not be checked. Hope this helps. -- View this message in context: http://www.nabble.com/Need-to-Understand-CheckGroup-and-Check-tp23307190p23311015.html Sent from the Wicket - User 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