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
8,433
Jacob
Davis
231-555-5876
374-555-5610
8,434
Jacob
Davis
607-555-6422
847-555-2088
8,435
Maria
Nelson
330-555-7720
255-555-1570
8,436
Keith
Gomez
254-555-1472
878-555-8555
8,437
Jose
Nelson
220-555-7211
644-555-3261
8,438
Sandra
Davis
377-555-5112
510-555-5124
8,439
Keith
Fisher
852-555-2835
812-555-3070
8,440
Sarah
Moore
352-555-8835
372-555-5016