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,840,529
Samuel
Allen
310-555-8588
252-555-1327
3,840,530
Emily
Cruz
254-555-3460
433-555-8517
3,840,531
Samuel
Graham
700-555-3644
870-555-6173
3,840,532
Larry
Fisher
814-555-8766
406-555-5230
3,840,533
Keith
Rose
700-555-1542
557-555-8650
3,840,534
Sarah
Williams
340-555-6770
724-555-3204
3,840,535
Nicholas
Murray
833-555-2014
457-555-5076
3,840,536
Abner
Gonzalez
277-555-3255
265-555-5011