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
54,282
Gerald
Davis
586-555-2221
583-555-6185
54,283
Pamela
Bailey
331-555-2703
777-555-5552
54,284
Pamela
Murray
426-555-8710
360-555-8151
54,285
Emily
Lee
451-555-3084
500-555-1824
54,286
Maria
Baker
241-555-7582
801-555-7113
54,287
Jack
Bailey
885-555-6285
408-555-7865
54,288
Linda
Brown
741-555-8355
744-555-5300
54,289
Samuel
Nelson
641-555-5426
638-555-5665