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
20,926
Emily
Smiith
636-555-5884
871-555-7677
20,927
Debra
Ortiz
848-555-7465
566-555-6111
20,928
Joshua
Davis
471-555-8620
365-555-2180
20,929
Willie
Baker
632-555-5155
707-555-3086
20,930
Linda
Donahue
813-555-1542
484-555-7237
20,931
Debra
Murray
553-555-6072
621-555-8307
20,932
Nicholas
Davis
630-555-5070
262-555-3226
20,933
Jacob
Baker
775-555-7741
422-555-2852