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
7,943,999
Larry
Gonzalez
815-555-4422
481-555-2025
7,944,000
Joshua
Gonzalez
705-555-7452
673-555-4284
7,944,001
Abner
Lee
661-555-6760
480-555-4177
7,944,002
Emily
Johnson
660-555-7383
434-555-6056
7,944,003
Hailey
Brown
487-555-6602
367-555-7680
7,944,004
Linda
Jones
272-555-3325
635-555-1162
7,944,005
Gerald
Murray
732-555-1725
556-555-7064
7,944,006
Kathleen
Ortiz
630-555-1386
326-555-8123