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
528
Debra
Bailey
220-555-8317
514-555-1838
529
Emily
Rose
765-555-5008
536-555-3052
530
Linda
Cruz
554-555-5734
534-555-4512
531
Debra
Donahue
638-555-1220
484-555-7848
532
Douglas
Brown
878-555-8248
588-555-3614
533
Sandra
Jones
342-555-7137
745-555-1326
534
Linda
Moore
580-555-1471
420-555-4564
535
Larry
Bailey
712-555-1061
213-555-7542