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
11,657
Virginia
Gonzalez
677-555-1250
514-555-4244
11,658
Abner
Fisher
774-555-5616
880-555-3734
11,659
Brianna
Johnson
645-555-3213
874-555-4540
11,660
Joshua
Ortiz
338-555-3208
856-555-2568
11,661
Sarah
Brown
644-555-7138
208-555-8104
11,662
Jose
Graham
205-555-8586
453-555-5687
11,663
Hailey
Cruz
635-555-2017
235-555-6737
11,664
Jacob
Cruz
723-555-6256
651-555-6564