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,514,901
Sandra
Williams
323-555-2763
570-555-3817
5,514,902
Virginia
Brown
218-555-2773
583-555-5054
5,514,903
Larry
Baker
808-555-7164
648-555-2558
5,514,904
Matthew
Lee
726-555-3676
634-555-1545
5,514,905
Debra
Gonzalez
581-555-8258
574-555-2148
5,514,906
Nicholas
Jones
762-555-4255
357-555-8176
5,514,907
Samantha
Donahue
230-555-4813
546-555-6041
5,514,908
Michael
Baker
475-555-6511
685-555-5375