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
3,768,547
Sarah
Jones
707-555-8734
354-555-3046
3,768,548
Gerald
Davis
254-555-1020
746-555-8810
3,768,549
Jacob
Jones
372-555-4463
840-555-5004
3,768,550
Joshua
Jones
271-555-4477
565-555-2855
3,768,551
Willie
Brown
304-555-8713
820-555-4547
3,768,552
Larry
Johnson
480-555-6734
268-555-7178
3,768,553
Emily
Cruz
648-555-4442
613-555-4480
3,768,554
Debra
Cruz
827-555-5127
475-555-5150