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
61,691
Maria
Cruz
866-555-4308
807-555-7153
61,692
Douglas
Graham
325-555-5380
743-555-4651
61,693
Abner
Williams
747-555-7625
588-555-1044
61,694
Pamela
Davis
531-555-5126
814-555-3230
61,695
Abby
Williams
767-555-7202
616-555-7764
61,696
Keith
Baker
234-555-2284
346-555-6654
61,697
Jose
Cruz
441-555-6208
453-555-7723
61,698
Jose
Smiith
855-555-5264
818-555-4878