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
43,649
Virginia
Lee
808-555-2808
717-555-5054
43,650
Gerald
Gonzalez
310-555-6137
270-555-4727
43,651
Samuel
Baker
338-555-7024
868-555-4251
43,652
Samuel
Nelson
508-555-6674
481-555-4446
43,653
Keith
Wilson
822-555-6275
860-555-6483
43,654
Sarah
Moore
635-555-1605
678-555-1783
43,655
Jose
Hall
832-555-2170
305-555-3776
43,656
Samuel
Graham
220-555-7548
735-555-5716