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
709,560
Maria
Black
873-555-1034
260-555-8806
709,561
Timothy
Nelson
241-555-8777
441-555-2562
709,562
Willie
Murray
352-555-1761
268-555-5056
709,563
Joshua
Bailey
706-555-3128
764-555-5753
709,564
Samuel
Ortiz
718-555-2187
248-555-2764
709,565
Debra
Johnson
462-555-4612
417-555-2211
709,566
Gerald
Cruz
411-555-3363
264-555-7258
709,567
Gerald
Rose
403-555-2884
282-555-1721