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,200,565
Michael
Allen
861-555-1130
346-555-6470
3,200,566
Larry
Brown
206-555-6438
737-555-3231
3,200,567
Linda
Jones
827-555-5082
510-555-2381
3,200,568
Samantha
Smiith
432-555-6653
830-555-5012
3,200,569
Samantha
Black
268-555-6255
805-555-7677
3,200,570
Maria
Moore
571-555-2636
657-555-1745
3,200,571
Larry
Cruz
718-555-7113
777-555-4353
3,200,572
Samuel
Black
276-555-1280
214-555-4164