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,755,124
Willie
Clark
281-555-7634
802-555-3654
3,755,125
Debra
Davis
287-555-2817
437-555-7481
3,755,126
Linda
Black
723-555-5246
404-555-7660
3,755,127
Joshua
Rose
655-555-6154
245-555-1510
3,755,128
Abner
Baker
633-555-8365
504-555-2740
3,755,129
Nicholas
Jones
406-555-3625
435-555-6086
3,755,130
Christopher
Clark
850-555-8425
411-555-7071
3,755,131
Nicholas
Jones
573-555-8154
460-555-5681