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,461,465
Hailey
Baker
440-555-3306
203-555-1636
1,461,466
Joshua
Davis
614-555-8523
634-555-6668
1,461,467
Matthew
Johnson
252-555-7512
662-555-2845
1,461,468
Sandra
Gomez
286-555-3577
234-555-1207
1,461,469
Jose
Bailey
441-555-2765
443-555-2783
1,461,470
Jose
Murray
837-555-4865
435-555-5240
1,461,471
Willie
Murray
342-555-5332
301-555-6225
1,461,472
Abner
Davis
836-555-3630
445-555-4340