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
192,108
Willie
Brown
746-555-3418
746-555-6513
192,109
Kathleen
Allen
600-555-5486
222-555-7754
192,110
Linda
Gonzalez
473-555-1751
567-555-2360
192,111
Linda
Moore
852-555-1648
630-555-4367
192,112
Joshua
Cruz
613-555-3044
686-555-3518
192,113
Joshua
Moore
525-555-3362
360-555-2352
192,114
Hailey
Jones
656-555-6775
421-555-5718
192,115
Brianna
Jones
202-555-7515
206-555-5386