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
931
Douglas
Graham
862-555-1678
668-555-4230
932
Kathleen
Bailey
405-555-1655
788-555-7660
933
Maria
Black
443-555-1588
662-555-3242
934
Abner
Johnson
864-555-6557
778-555-6145
935
Timothy
Black
671-555-3553
765-555-2202
936
Sandra
Hall
237-555-8445
744-555-4486
937
Douglas
Nelson
682-555-8844
468-555-3214
938
Abner
Clark
442-555-3012
881-555-4801