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
53,724
Gerald
Baker
323-555-2252
456-555-8701
53,725
Abner
Rose
572-555-1627
720-555-8006
53,726
Christopher
Clark
536-555-6385
646-555-1052
53,727
Jose
Gonzalez
724-555-4432
431-555-8343
53,728
Maria
Black
487-555-2236
651-555-6508
53,729
Brianna
Johnson
381-555-5082
546-555-2631
53,730
Willie
Moore
763-555-5665
720-555-4204
53,731
Larry
Clark
835-555-3415
677-555-4180