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
2,876,212
Abner
Brown
544-555-3577
866-555-3836
2,876,213
Maria
Moore
284-555-8617
646-555-3260
2,876,214
Matthew
Graham
342-555-7025
778-555-3318
2,876,215
Linda
Fisher
405-555-4537
671-555-3464
2,876,216
Christopher
Jones
522-555-3385
318-555-7645
2,876,217
Douglas
Baker
445-555-6603
563-555-5625
2,876,218
Debra
Williams
720-555-2748
868-555-1152
2,876,219
Christopher
Cruz
260-555-8176
523-555-3236