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,569,895
Abner
Allen
818-555-5331
863-555-2734
5,569,896
Douglas
Fisher
231-555-8717
332-555-5365
5,569,897
Douglas
Rose
416-555-2832
265-555-7462
5,569,898
Hailey
Murray
815-555-2026
770-555-8025
5,569,899
Larry
Murray
485-555-5180
621-555-5183
5,569,900
Michael
Moore
344-555-3211
755-555-2638
5,569,901
Jose
Jones
878-555-4475
510-555-4175
5,569,902
Virginia
Brown
286-555-7833
756-555-3107