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
707,886
Emily
Hall
833-555-1376
556-555-1226
707,887
Debra
Allen
576-555-3058
841-555-6718
707,888
Emily
Hall
676-555-6821
661-555-8433
707,889
Matthew
Bailey
613-555-1478
528-555-6464
707,890
Timothy
Davis
564-555-4384
870-555-7520
707,891
Nicholas
Allen
738-555-6443
800-555-7874
707,892
Joshua
Bailey
240-555-3020
542-555-3861
707,893
Maria
Lee
360-555-4486
577-555-7683