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
82,926
Larry
Black
468-555-3561
226-555-5248
82,927
Samantha
Smiith
521-555-7242
623-555-6457
82,928
Joshua
Smiith
827-555-4250
678-555-1544
82,929
Sarah
Graham
508-555-5763
344-555-6216
82,930
Nicholas
Nelson
221-555-6437
817-555-8675
82,931
Nicholas
Ortiz
815-555-6730
585-555-4813
82,932
Nicholas
Bailey
821-555-1020
461-555-7684
82,933
Keith
Moore
312-555-1216
765-555-7020