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
68,294
Timothy
Allen
401-555-3706
525-555-4386
68,295
Gerald
Cruz
377-555-6886
612-555-4864
68,296
Pamela
Baker
345-555-5586
735-555-6083
68,297
Keith
Murray
572-555-8152
355-555-2420
68,298
Virginia
Murray
275-555-8103
572-555-6175
68,299
Brianna
Bailey
538-555-2425
878-555-6772
68,300
Samuel
Bailey
637-555-8645
242-555-5417
68,301
Keith
Johnson
463-555-7487
486-555-2040