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
5,483,033
Abby
Lee
668-555-4803
412-555-1665
5,483,034
Douglas
Cruz
864-555-2504
365-555-8261
5,483,035
Brianna
Lee
434-555-2334
828-555-1308
5,483,036
Douglas
Allen
307-555-6405
655-555-4574
5,483,037
Kathleen
Davis
265-555-5325
822-555-5605
5,483,038
Christopher
Nelson
521-555-5120
468-555-6621
5,483,039
Joshua
Lee
734-555-3610
822-555-3837
5,483,040
Sandra
Johnson
268-555-6083
233-555-7006