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
719,232
Willie
Murray
246-555-3458
266-555-5413
719,233
Samantha
Wilson
605-555-5840
858-555-2480
719,234
Joshua
Gomez
360-555-4423
211-555-4017
719,235
Emily
Fisher
224-555-2733
783-555-1273
719,236
Jack
Donahue
825-555-4865
735-555-6802
719,237
Willie
Black
864-555-7203
818-555-8627
719,238
Christopher
Jones
507-555-1176
703-555-5581
719,239
Hailey
Graham
342-555-8502
461-555-3701