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
7,368,639
Samantha
Smiith
712-555-7748
533-555-3070
7,368,640
Jack
Johnson
287-555-7262
372-555-6773
7,368,641
Hailey
Davis
610-555-4205
862-555-3622
7,368,642
Hailey
Black
252-555-6556
316-555-7265
7,368,643
Nicholas
Davis
508-555-3630
737-555-1557
7,368,644
Timothy
Jones
264-555-4466
322-555-6762
7,368,645
Brianna
Nelson
275-555-1261
317-555-6428
7,368,646
Debra
Gomez
431-555-5784
445-555-4347