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,463,015
Jack
Davis
484-555-6421
304-555-5317
1,463,016
Joshua
Davis
410-555-3722
583-555-7433
1,463,017
Virginia
Wilson
256-555-2415
426-555-4011
1,463,018
Keith
Black
384-555-5131
685-555-8360
1,463,019
Debra
Davis
350-555-6124
268-555-8674
1,463,020
Jose
Gonzalez
612-555-4617
203-555-5132
1,463,021
Keith
Nelson
427-555-2276
238-555-2662
1,463,022
Keith
Baker
750-555-2205
528-555-4506