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
655,279
Gerald
Brown
708-555-4345
253-555-1564
655,280
Jacob
Black
273-555-3163
805-555-3412
655,281
Timothy
Smiith
708-555-4432
332-555-1782
655,282
Samuel
Jones
860-555-7021
517-555-7752
655,283
Kathleen
Ortiz
767-555-2538
880-555-8210
655,284
Sandra
Murray
288-555-2015
761-555-3002
655,285
Timothy
Ortiz
262-555-1764
671-555-1784
655,286
Sarah
Black
247-555-3714
674-555-2367