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
745,799
Matthew
Johnson
631-555-3380
820-555-1568
745,800
Willie
Gonzalez
751-555-3727
712-555-1867
745,801
Jack
Gonzalez
566-555-5644
372-555-5666
745,802
Jacob
Black
446-555-5754
620-555-8011
745,803
Douglas
Graham
813-555-4845
456-555-1331
745,804
Sandra
Graham
545-555-7563
676-555-2307
745,805
Debra
Johnson
876-555-3331
656-555-6707
745,806
Samantha
Clark
870-555-5541
870-555-3063