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
3,828,904
Sandra
Murray
807-555-1574
613-555-2534
3,828,905
Kathleen
Rose
656-555-4256
740-555-8721
3,828,906
Christopher
Murray
842-555-6882
764-555-4056
3,828,907
Jack
Baker
644-555-8227
524-555-7414
3,828,908
Christopher
Smiith
808-555-4512
483-555-4583
3,828,909
Keith
Graham
843-555-1688
282-555-8057
3,828,910
Debra
Clark
213-555-3656
542-555-1030
3,828,911
Kathleen
Gomez
867-555-8513
426-555-7462