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
602,858
Samuel
Moore
752-555-7241
756-555-6786
602,859
Sandra
Williams
251-555-8437
446-555-4268
602,860
Linda
Allen
585-555-8888
703-555-6663
602,861
Joshua
Moore
340-555-4427
460-555-5583
602,862
Hailey
Johnson
877-555-1728
563-555-7771
602,863
Nicholas
Donahue
240-555-4055
376-555-5181
602,864
Gerald
Wilson
621-555-4714
413-555-4032
602,865
Douglas
Jones
548-555-4877
558-555-4046