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
73,130
Michael
Cruz
886-555-2766
881-555-8123
73,131
Timothy
Baker
261-555-3065
244-555-3310
73,132
Jack
Donahue
414-555-4682
567-555-3050
73,133
Virginia
Smiith
651-555-7111
337-555-4774
73,134
Pamela
Cruz
264-555-6738
506-555-5518
73,135
Timothy
Graham
510-555-5161
662-555-2544
73,136
Joshua
Black
444-555-8385
465-555-6056
73,137
Matthew
Williams
200-555-5754
358-555-7810