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
1,551
Virginia
Gomez
251-555-7715
750-555-2070
1,552
Christopher
Hall
651-555-8667
775-555-4325
1,553
Matthew
Johnson
640-555-2364
747-555-3562
1,554
Samuel
Wilson
321-555-6808
831-555-3622
1,555
Willie
Donahue
384-555-7112
447-555-1283
1,556
Larry
Smiith
536-555-2575
504-555-4454
1,557
Willie
Nelson
316-555-3400
673-555-2445
1,558
Christopher
Smiith
242-555-4240
824-555-3776