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,817,775
Hailey
Donahue
223-555-2573
264-555-2234
3,817,776
Christopher
Davis
813-555-7134
780-555-7660
3,817,777
Sandra
Rose
302-555-4140
852-555-2052
3,817,778
Timothy
Davis
820-555-3483
505-555-5582
3,817,779
Larry
Graham
681-555-5657
461-555-1808
3,817,780
Maria
Bailey
465-555-7588
827-555-7253
3,817,781
Jose
Bailey
855-555-2024
415-555-5863
3,817,782
Maria
Williams
671-555-7268
603-555-8432