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
869
Timothy
Black
370-555-1426
605-555-7646
870
Keith
Jones
721-555-4135
210-555-1662
871
Christopher
Baker
317-555-4634
832-555-7820
872
Timothy
Johnson
536-555-3160
288-555-4154
873
Christopher
Gonzalez
813-555-3325
228-555-4818
874
Hailey
Rose
581-555-5583
878-555-4481
875
Emily
Williams
575-555-6148
462-555-1032
876
Samuel
Lee
630-555-7268
418-555-1208