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
707,607
Jose
Smiith
277-555-2642
637-555-8081
707,608
Maria
Rose
540-555-5470
310-555-7801
707,609
Douglas
Baker
343-555-3680
870-555-3816
707,610
Brianna
Hall
716-555-6872
307-555-5067
707,611
Abner
Williams
314-555-6178
642-555-5327
707,612
Nicholas
Johnson
228-555-6501
432-555-1331
707,613
Jack
Smiith
652-555-4088
316-555-7172
707,614
Timothy
Lee
835-555-4703
562-555-7031