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
39,929
Willie
Nelson
543-555-1768
366-555-8242
39,930
Michael
Jones
253-555-3403
336-555-1414
39,931
Keith
Brown
821-555-1726
775-555-2644
39,932
Linda
Black
466-555-1326
864-555-6042
39,933
Michael
Moore
707-555-8505
280-555-2730
39,934
Keith
Donahue
766-555-8765
646-555-3543
39,935
Samuel
Moore
405-555-2762
881-555-6650
39,936
Maria
Johnson
842-555-6768
873-555-5181