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
53,538
Larry
Gomez
746-555-2852
316-555-3166
53,539
Hailey
Murray
311-555-4066
828-555-3526
53,540
Abby
Bailey
545-555-3206
450-555-6301
53,541
Abby
Brown
814-555-4743
563-555-7240
53,542
Hailey
Hall
312-555-1000
483-555-4535
53,543
Abby
Fisher
312-555-7417
242-555-1645
53,544
Pamela
Fisher
424-555-3703
677-555-8265
53,545
Matthew
Jones
563-555-5850
571-555-6777