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
68,945
Keith
Donahue
536-555-7412
545-555-1463
68,946
Abby
Lee
685-555-6667
317-555-2807
68,947
Christopher
Allen
834-555-6845
600-555-1140
68,948
Sarah
Moore
280-555-3614
682-555-8268
68,949
Michael
Graham
717-555-3627
633-555-1014
68,950
Jacob
Nelson
615-555-1270
458-555-2777
68,951
Virginia
Smiith
686-555-7185
774-555-7633
68,952
Pamela
Gomez
477-555-2812
774-555-2840