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
1,723,291
Samuel
Graham
557-555-2816
714-555-6674
1,723,292
Jose
Donahue
854-555-8347
586-555-2436
1,723,293
Sarah
Lee
603-555-3220
286-555-4628
1,723,294
Michael
Johnson
352-555-4755
540-555-6130
1,723,295
Timothy
Jones
385-555-5265
746-555-6585
1,723,296
Sarah
Baker
614-555-4168
460-555-4077
1,723,297
Douglas
Fisher
246-555-1464
581-555-1852
1,723,298
Pamela
Rose
836-555-6223
745-555-8472