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
42,316
Willie
Gomez
538-555-3560
883-555-6668
42,317
Nicholas
Davis
473-555-6304
376-555-4302
42,318
Emily
Jones
765-555-3475
736-555-3404
42,319
Douglas
Bailey
501-555-1572
832-555-4741
42,320
Jack
Murray
814-555-1642
722-555-3408
42,321
Brianna
Jones
218-555-8870
700-555-2468
42,322
Virginia
Murray
522-555-6487
582-555-6477
42,323
Sandra
Smiith
544-555-3240
386-555-2177