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,997,725
Jose
Fisher
823-555-8585
652-555-5755
5,997,726
Jose
Donahue
751-555-7122
764-555-5355
5,997,727
Virginia
Nelson
425-555-3717
752-555-3122
5,997,728
Hailey
Ortiz
564-555-2745
678-555-8625
5,997,729
Gerald
Lee
477-555-5637
530-555-4503
5,997,730
Willie
Fisher
233-555-5104
681-555-4734
5,997,731
Jose
Ortiz
233-555-8026
881-555-5478
5,997,732
Kathleen
Graham
651-555-4688
883-555-2488