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
706,894
Sandra
Black
226-555-5033
718-555-7743
706,895
Virginia
Gomez
843-555-3525
735-555-4128
706,896
Joshua
Davis
404-555-8521
878-555-3245
706,897
Samantha
Hall
454-555-1407
425-555-3741
706,898
Nicholas
Murray
517-555-3641
328-555-2617
706,899
Samantha
Hall
643-555-2606
853-555-6363
706,900
Samuel
Donahue
446-555-1750
552-555-6812
706,901
Matthew
Clark
841-555-7338
263-555-8334