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,508
Nicholas
Johnson
465-555-6355
283-555-7156
5,997,509
Larry
Smiith
747-555-7767
674-555-2136
5,997,510
Brianna
Clark
544-555-7788
581-555-7372
5,997,511
Pamela
Johnson
781-555-4655
410-555-1833
5,997,512
Samuel
Jones
452-555-1076
876-555-1128
5,997,513
Douglas
Baker
378-555-8448
400-555-2460
5,997,514
Emily
Lee
452-555-1875
307-555-6418
5,997,515
Linda
Brown
711-555-8462
270-555-3068