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
17,702
Jose
Ortiz
276-555-7766
635-555-2800
17,703
Sarah
Allen
476-555-6773
461-555-7266
17,704
Joshua
Graham
724-555-5232
337-555-5113
17,705
Brianna
Lee
326-555-7774
675-555-7105
17,706
Willie
Allen
665-555-3141
427-555-5568
17,707
Hailey
Fisher
467-555-1045
711-555-2047
17,708
Sandra
Hall
662-555-1342
247-555-6675
17,709
Sarah
Moore
616-555-1864
818-555-8510