Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: mention org.apache.wicket.markup.html.form.CheckGroup

Excerpt
hiddentrue

How to use checkboxes to select items in a listview


Using checkboxes to select items in a listview is a common thing to do. For example, you want to select items to delete from a list.

The easiest and neatest way to do this is probably using a org.apache.wicket.markup.html.form.CheckGroup

Another One way to do this, is to wrap your 'business objects' so that it has an additional boolean property that you can use in your form. The following example uses such a wrapper, where the 'name' field is the wrapped object.

...