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
45,385
Douglas
Lee
573-555-8384
244-555-1842
45,386
Sandra
Wilson
815-555-6886
804-555-3641
45,387
Debra
Jones
378-555-2364
856-555-8460
45,388
Abby
Cruz
305-555-3181
735-555-4430
45,389
Keith
Allen
601-555-7818
443-555-3337
45,390
Christopher
Hall
568-555-4543
666-555-6672
45,391
Matthew
Baker
776-555-2651
426-555-1725
45,392
Kathleen
Black
343-555-1106
421-555-7055