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
1,471,199
Timothy
Murray
451-555-7120
852-555-6860
1,471,200
Michael
Fisher
261-555-4134
657-555-4854
1,471,201
Samantha
Brown
541-555-4552
644-555-3074
1,471,202
Linda
Moore
464-555-8655
842-555-6125
1,471,203
Virginia
Clark
468-555-4555
572-555-5763
1,471,204
Willie
Rose
624-555-8015
705-555-6082
1,471,205
Samantha
Davis
636-555-4756
303-555-5431
1,471,206
Virginia
Clark
758-555-7800
684-555-6743