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,517,350
Michael
Gomez
200-555-5510
504-555-6768
5,517,351
Sandra
Hall
546-555-1526
505-555-7327
5,517,352
Christopher
Clark
640-555-6816
831-555-2135
5,517,353
Abner
Fisher
414-555-2521
732-555-5347
5,517,354
Samantha
Donahue
528-555-2751
841-555-5345
5,517,355
Larry
Graham
653-555-6224
754-555-7344
5,517,356
Joshua
Clark
765-555-3363
344-555-2530
5,517,357
Samantha
Wilson
353-555-3127
756-555-1016