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
721,495
Larry
Jones
516-555-7558
447-555-2546
721,496
Larry
Cruz
576-555-4363
601-555-5211
721,497
Samuel
Lee
632-555-7868
316-555-7388
721,498
Brianna
Davis
564-555-3437
668-555-7568
721,499
Joshua
Davis
422-555-8271
557-555-2740
721,500
Sandra
Black
838-555-3837
458-555-8554
721,501
Samuel
Jones
480-555-1551
416-555-2202
721,502
Debra
Rose
206-555-5484
688-555-6061