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,069
Emily
Nelson
433-555-1658
803-555-2022
7,070
Pamela
Rose
471-555-2275
548-555-7088
7,071
Samuel
Smiith
325-555-3835
234-555-1337
7,072
Virginia
Allen
306-555-4363
214-555-4000
7,073
Samuel
Johnson
316-555-8527
203-555-2128
7,074
Kathleen
Cruz
300-555-7375
867-555-3737
7,075
Michael
Cruz
670-555-7460
271-555-1564
7,076
Gerald
Brown
457-555-1248
615-555-8658