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
654,349
Jacob
Jones
600-555-1356
646-555-5001
654,350
Jacob
Graham
877-555-3445
842-555-1473
654,351
Sandra
Brown
230-555-5256
214-555-6282
654,352
Christopher
Smiith
641-555-7022
678-555-3872
654,353
Christopher
Gomez
708-555-2518
621-555-1188
654,354
Linda
Clark
578-555-5363
747-555-5021
654,355
Douglas
Clark
818-555-5361
601-555-2318
654,356
Nicholas
Murray
486-555-6210
538-555-5242