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
13,300
Jack
Black
468-555-8285
508-555-5520
13,301
Nicholas
Gonzalez
338-555-3864
703-555-5313
13,302
Brianna
Wilson
350-555-4046
476-555-7331
13,303
Linda
Rose
653-555-3726
768-555-8632
13,304
Hailey
Hall
543-555-1343
306-555-5664
13,305
Virginia
Donahue
651-555-7851
815-555-2711
13,306
Christopher
Jones
228-555-1281
413-555-7213
13,307
Emily
Davis
466-555-8526
572-555-1685