This is a rewrite of the AJAX data table example from Wicket. We demonstrate here how we can deviate from the default settings by using a BindingInterceptor in the page. Also we show how the order of the generated table columns and visibility of columns can be manipulated by the @ColumnOrder annotation. The removeFrom utility method is also demonstrated for how to remove elements in the parent model via adding a button to the table. The multiselection behavior is fully driven by the model class.

This is a demo of the DataTable (DataView wrapper). Provided features:

  • Easy ordering and selection of columns
  • Takes care of sorting headers automatically
  • Takes care of page navigator automatically
  • Takes care of adding class="odd" and class="even" to table rows
  • Adds a navigator message (see BindingInterceptor in page which enables it)
Contacts
Id First Name Last Name Home Phone Cell Phone Remove
227,324
Sarah
Cruz
548-555-3308
542-555-4761
227,325
Pamela
Lee
201-555-2304
546-555-1756
227,326
Samuel
Lee
370-555-1308
225-555-7440
227,327
Joshua
Gonzalez
818-555-1857
238-555-2221
227,328
Samantha
Bailey
615-555-4166
452-555-1827
227,329
Douglas
Moore
846-555-4822
635-555-2366
227,330
Joshua
Gomez
246-555-5728
688-555-5404
227,331
Brianna
Williams
728-555-4225
534-555-8874