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
10,514,147
Willie
Moore
881-555-4037
742-555-4357
10,514,148
Joshua
Johnson
352-555-1654
202-555-8634
10,514,149
Abner
Fisher
426-555-6025
736-555-5261
10,514,150
Linda
Gonzalez
383-555-5384
207-555-7718
10,514,151
Samantha
Moore
877-555-7740
473-555-8148
10,514,152
Larry
Donahue
484-555-7880
818-555-3312
10,514,153
Debra
Fisher
834-555-5777
633-555-8621
10,514,154
Linda
Baker
540-555-3446
326-555-2514