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
30,938
Nicholas
Black
737-555-5317
464-555-2820
30,939
Gerald
Gonzalez
381-555-8427
704-555-5340
30,940
Sandra
Clark
777-555-6205
551-555-7242
30,941
Gerald
Baker
406-555-5666
253-555-8387
30,942
Larry
Fisher
806-555-4850
211-555-4470
30,943
Matthew
Brown
365-555-8571
666-555-7225
30,944
Sarah
Allen
657-555-5852
787-555-1118
30,945
Jose
Allen
787-555-4034
285-555-5755