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,539,878
Maria
Allen
201-555-1003
713-555-3040
3,539,879
Michael
Donahue
586-555-5486
643-555-1110
3,539,880
Sandra
Gonzalez
283-555-8325
688-555-2742
3,539,881
Debra
Black
435-555-2673
608-555-3577
3,539,882
Abner
Gonzalez
251-555-6054
845-555-5172
3,539,883
Samuel
Gonzalez
730-555-8064
517-555-5126
3,539,884
Sandra
Brown
641-555-2875
836-555-5861
3,539,885
Larry
Black
444-555-1166
481-555-4627