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
10,513,837
Maria
Clark
225-555-7005
710-555-4268
10,513,838
Emily
Baker
816-555-2551
221-555-8265
10,513,839
Virginia
Hall
427-555-1408
603-555-2660
10,513,840
Emily
Hall
882-555-3047
686-555-8327
10,513,841
Jacob
Gomez
685-555-1433
303-555-5227
10,513,842
Nicholas
Graham
738-555-3802
380-555-7116
10,513,843
Abner
Donahue
733-555-5666
616-555-4053
10,513,844
Jack
Davis
723-555-8443
846-555-1720