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
654,132
Douglas
Hall
302-555-8427
744-555-3865
654,133
Samantha
Lee
258-555-4315
631-555-3160
654,134
Virginia
Williams
677-555-3802
266-555-7448
654,135
Maria
Gomez
206-555-4556
607-555-3820
654,136
Pamela
Johnson
646-555-2584
505-555-2065
654,137
Nicholas
Williams
703-555-6466
228-555-2843
654,138
Hailey
Murray
823-555-2645
380-555-7534
654,139
Sandra
Graham
855-555-5051
517-555-1517