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
53,166
Gerald
Davis
364-555-7313
423-555-4385
53,167
Samuel
Gomez
330-555-1207
608-555-1301
53,168
Jacob
Hall
636-555-8877
400-555-8023
53,169
Debra
Lee
623-555-7882
458-555-4846
53,170
Sarah
Murray
515-555-7458
334-555-4157
53,171
Jacob
Cruz
674-555-8016
411-555-4254
53,172
Emily
Donahue
761-555-8268
515-555-6200
53,173
Christopher
Ortiz
755-555-6062
481-555-7763