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,794
Christopher
Hall
406-555-5476
364-555-8743
7,368,795
Hailey
Fisher
864-555-2320
542-555-6245
7,368,796
Larry
Ortiz
217-555-3063
241-555-6768
7,368,797
Abner
Williams
205-555-3777
886-555-8757
7,368,798
Debra
Rose
305-555-8166
547-555-7046
7,368,799
Keith
Jones
835-555-6251
288-555-3154
7,368,800
Pamela
Moore
774-555-1535
617-555-6452
7,368,801
Brianna
Wilson
664-555-3466
536-555-3488