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
94
Abner
Ortiz
843-555-6540
216-555-1043
95
Abby
Jones
553-555-7530
788-555-7068
96
Samantha
Baker
878-555-6823
236-555-3808
97
Samantha
Clark
247-555-4537
344-555-3074
98
Sarah
Williams
432-555-3552
534-555-7040
99
Abner
Gomez
662-555-3231
460-555-3467
100
Michael
Donahue
834-555-6160
216-555-4500
101
Timothy
Rose
641-555-6120
414-555-6803