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
1,458,629
Michael
Johnson
648-555-2257
773-555-3732
1,458,630
Hailey
Nelson
838-555-4378
748-555-5078
1,458,631
Gerald
Jones
726-555-3182
441-555-6512
1,458,632
Keith
Black
426-555-4315
328-555-5651
1,458,633
Jose
Ortiz
538-555-7512
633-555-3535
1,458,634
Matthew
Ortiz
802-555-8711
471-555-8301
1,458,635
Christopher
Allen
457-555-6144
830-555-5647
1,458,636
Matthew
Hall
581-555-7701
583-555-5408