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
10,107
Gerald
Allen
787-555-7132
744-555-7387
10,108
Abner
Donahue
465-555-3620
743-555-8221
10,109
Willie
Lee
582-555-3540
632-555-4536
10,110
Emily
Moore
562-555-6845
450-555-6015
10,111
Larry
Davis
217-555-1538
417-555-1765
10,112
Kathleen
Johnson
246-555-2587
540-555-3013
10,113
Matthew
Murray
311-555-7166
802-555-1456
10,114
Abner
Cruz
561-555-8576
541-555-5522