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
5,561,401
Gerald
Moore
225-555-4773
308-555-6087
5,561,402
Joshua
Bailey
213-555-1882
461-555-7261
5,561,403
Keith
Nelson
603-555-6606
762-555-4711
5,561,404
Gerald
Brown
378-555-2067
377-555-8882
5,561,405
Hailey
Allen
774-555-8482
763-555-2743
5,561,406
Abner
Bailey
607-555-4178
251-555-5424
5,561,407
Pamela
Gonzalez
712-555-1736
860-555-2054
5,561,408
Michael
Moore
405-555-8385
423-555-5415