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
142,906
Abby
Graham
424-555-5883
560-555-7700
142,907
Sarah
Nelson
857-555-6281
583-555-7207
142,908
Brianna
Moore
366-555-5847
834-555-4863
142,909
Matthew
Smiith
288-555-4140
614-555-2277
142,910
Abby
Clark
756-555-1668
717-555-7568
142,911
Hailey
Ortiz
301-555-7188
576-555-3561
142,912
Virginia
Gonzalez
578-555-6114
600-555-5851
142,913
Nicholas
Murray
456-555-6251
808-555-2823