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,842,637
Emily
Cruz
876-555-6342
303-555-8436
3,842,638
Douglas
Gomez
526-555-7668
838-555-7680
3,842,639
Kathleen
Johnson
251-555-1331
645-555-1183
3,842,640
Maria
Ortiz
734-555-7287
214-555-2601
3,842,641
Virginia
Cruz
463-555-2014
857-555-7433
3,842,642
Debra
Donahue
650-555-3741
586-555-7044
3,842,643
Pamela
Ortiz
584-555-3857
201-555-3838
3,842,644
Jack
Hall
717-555-3502
734-555-3488