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
8,898
Sandra
Moore
706-555-5333
435-555-1238
8,899
Douglas
Lee
678-555-3324
518-555-4730
8,900
Jacob
Nelson
624-555-4437
328-555-8546
8,901
Maria
Lee
687-555-5647
606-555-4636
8,902
Virginia
Ortiz
312-555-6122
556-555-6770
8,903
Linda
Nelson
622-555-4787
601-555-1840
8,904
Hailey
Williams
432-555-8186
463-555-6765
8,905
Sandra
Jones
211-555-5603
484-555-6185