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
705,592
Sarah
Gomez
424-555-5182
832-555-8428
705,593
Christopher
Clark
228-555-8684
857-555-4226
705,594
Jose
Williams
322-555-2010
730-555-7655
705,595
Sandra
Johnson
221-555-8613
868-555-5546
705,596
Keith
Allen
812-555-1825
503-555-2446
705,597
Jack
Jones
327-555-8748
834-555-4068
705,598
Samantha
Davis
788-555-2032
810-555-4226
705,599
Jacob
Graham
714-555-5822
653-555-7606