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
55,150
Samuel
Clark
270-555-5024
306-555-7254
55,151
Nicholas
Nelson
415-555-3318
607-555-5441
55,152
Debra
Jones
576-555-3618
443-555-4510
55,153
Christopher
Baker
558-555-7352
770-555-7124
55,154
Jose
Black
246-555-1615
510-555-8450
55,155
Joshua
Donahue
824-555-8873
676-555-2278
55,156
Brianna
Davis
861-555-7213
478-555-6644
55,157
Willie
Gomez
283-555-2621
868-555-7230