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
41,880
Jack
Rose
730-555-6413
705-555-8705
41,881
Douglas
Williams
276-555-8312
587-555-5275
41,882
Linda
Jones
225-555-1562
627-555-5757
41,883
Brianna
Williams
741-555-8131
246-555-4878
41,884
Joshua
Moore
425-555-5235
246-555-5107
41,885
Joshua
Johnson
562-555-2452
448-555-7270
41,886
Linda
Black
481-555-6533
286-555-5615
41,887
Hailey
Smiith
526-555-2163
310-555-7803