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,824,099
Abner
Davis
451-555-1303
433-555-5312
3,824,100
Samuel
Fisher
816-555-3301
752-555-1177
3,824,101
Sarah
Nelson
222-555-7408
517-555-6626
3,824,102
Jack
Hall
446-555-7522
461-555-1430
3,824,103
Jose
Nelson
711-555-2712
475-555-2310
3,824,104
Christopher
Johnson
746-555-5714
673-555-2156
3,824,105
Abner
Johnson
427-555-2861
308-555-8875
3,824,106
Samuel
Gomez
843-555-5523
835-555-5128