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
18,725
Gerald
Cruz
655-555-7217
825-555-2145
18,726
Linda
Brown
400-555-2332
514-555-4122
18,727
Sandra
Bailey
763-555-6654
621-555-3641
18,728
Sarah
Jones
552-555-6211
361-555-5027
18,729
Nicholas
Black
462-555-8255
327-555-5838
18,730
Abner
Gonzalez
220-555-5856
857-555-3844
18,731
Jose
Williams
820-555-4203
702-555-5038
18,732
Joshua
Jones
243-555-3785
561-555-1643