Nope, added in the code. This is my code public QuickSearchFilterPanel(String id) { super(id); Form form = new Form("filterform");
List<Class<?>> classes = resultItemHandlerPool.getTypes(); types = new ArrayList<IModel<Class<?>>>(); if (classes != null) { for (final Class<?> clazz : classes) { IModel<Class<?>> model = new IModel<Class<?>>() { @Override public Class<?> getObject() { return clazz; } @Override public void setObject(Class<?> object) { } @Override public void detach() { } }; types.add(model); } } group = new CheckGroup<IModel<Class<?>>>("checkboxgroup", new PropertyModel<Collection<IModel<Class<?>>>>(this, "types")); group.add(new CheckGroupSelector("checkall")); ListView typesListview = new ListView<IModel<Class<?>>>("typesList", new PropertyModel<List<IModel<Class<?>>>>(this, "types")) { @Override protected void populateItem(final ListItem<IModel<Class<?>>> item) { final IModel<Class<?>> classModel = item.getModelObject(); Check checkbox = new Check<Class<?>>("check", classModel); Label className = new Label("className", classModel.getObject().getSimpleName()); item.add(checkbox, className); } }; typesListview.setReuseItems(true); group.add(typesListview); form.add(group); Button saveButton = new Button("saveButton") { @Override public void onSubmit() { super.onSubmit(); } }; form.add(saveButton); add(form); } public List<Class<?>> getSearchableTypes() { List<Class<?>> searchableTypes = new ArrayList<Class<?>>(); for (IModel<Class<?>> type : types) { searchableTypes.add(type.getObject()); } return searchableTypes; } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Saving-checked-choices-from-CheckGroup-tp4658408p4658411.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