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
54,220
Keith
Ortiz
812-555-4073
831-555-1404
54,221
Sarah
Brown
668-555-6784
583-555-2665
54,222
Maria
Ortiz
455-555-5245
202-555-3023
54,223
Samantha
Murray
727-555-6707
632-555-2408
54,224
Nicholas
Bailey
270-555-2684
641-555-1783
54,225
Sarah
Davis
224-555-6362
376-555-8341
54,226
Jose
Black
266-555-6237
866-555-3844
54,227
Gerald
Allen
404-555-6132
265-555-2636