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
44,362
Virginia
Johnson
805-555-1061
212-555-1745
44,363
Jack
Jones
518-555-7405
338-555-5508
44,364
Debra
Moore
308-555-2780
641-555-1050
44,365
Gerald
Johnson
734-555-8284
371-555-7652
44,366
Jose
Ortiz
336-555-7028
608-555-1163
44,367
Jack
Rose
363-555-1350
853-555-5101
44,368
Willie
Davis
547-555-1021
866-555-1181
44,369
Jacob
Rose
462-555-5126
286-555-5835