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
3,769,012
Jose
Moore
775-555-6542
735-555-8580
3,769,013
Timothy
Moore
864-555-5616
676-555-4802
3,769,014
Abby
Brown
502-555-8324
762-555-6301
3,769,015
Maria
Jones
521-555-5374
886-555-7265
3,769,016
Jose
Gonzalez
621-555-2682
465-555-3246
3,769,017
Maria
Johnson
410-555-2511
557-555-2142
3,769,018
Samuel
Fisher
632-555-1720
386-555-5757
3,769,019
Gerald
Jones
467-555-4738
767-555-3871