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
11,781
Matthew
Gonzalez
706-555-3626
255-555-7345
11,782
Timothy
Clark
542-555-7135
542-555-4256
11,783
Sandra
Nelson
357-555-8617
238-555-3744
11,784
Emily
Nelson
228-555-4243
516-555-5406
11,785
Larry
Johnson
440-555-7854
735-555-5174
11,786
Emily
Lee
462-555-7242
274-555-1450
11,787
Maria
Rose
817-555-1471
846-555-7055
11,788
Debra
Brown
254-555-2620
370-555-6021