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
5,998,686
Virginia
Hall
730-555-7664
714-555-4348
5,998,687
Jose
Rose
582-555-3112
663-555-4802
5,998,688
Sarah
Black
457-555-4356
455-555-6328
5,998,689
Hailey
Davis
264-555-2140
762-555-5777
5,998,690
Larry
Bailey
458-555-1248
813-555-2057
5,998,691
Samuel
Cruz
642-555-8738
464-555-6510
5,998,692
Sarah
Murray
822-555-2343
657-555-1313
5,998,693
Samantha
Jones
823-555-5187
514-555-7553