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,045,534
Joshua
Ortiz
680-555-7357
567-555-6332
3,045,535
Jack
Donahue
617-555-6246
642-555-2102
3,045,536
Timothy
Bailey
248-555-7418
212-555-4473
3,045,537
Pamela
Donahue
685-555-4306
583-555-6406
3,045,538
Jack
Gonzalez
673-555-2375
582-555-4635
3,045,539
Samuel
Gomez
312-555-8155
810-555-6447
3,045,540
Debra
Fisher
321-555-2523
277-555-2766
3,045,541
Abby
Davis
510-555-5334
268-555-1643