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,515,428
Hailey
Graham
763-555-1207
278-555-2188
5,515,429
Jose
Nelson
860-555-6155
655-555-7672
5,515,430
Keith
Murray
683-555-1230
746-555-5047
5,515,431
Maria
Gonzalez
215-555-1244
433-555-1356
5,515,432
Virginia
Ortiz
262-555-1566
203-555-8867
5,515,433
Keith
Nelson
343-555-1210
630-555-6372
5,515,434
Jacob
Williams
211-555-5824
558-555-1121
5,515,435
Michael
Baker
835-555-5656
727-555-2158