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,101
Debra
Brown
886-555-3812
385-555-8230
3,102
Matthew
Brown
231-555-2018
686-555-6847
3,103
Christopher
Rose
815-555-3551
477-555-7876
3,104
Joshua
Murray
716-555-6024
335-555-3317
3,105
Hailey
Fisher
437-555-1566
647-555-6273
3,106
Virginia
Murray
306-555-1232
815-555-3868
3,107
Keith
Jones
230-555-1036
623-555-6822
3,108
Willie
Davis
587-555-1384
885-555-8731