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
41,787
Hailey
Allen
250-555-1717
578-555-2315
41,788
Douglas
Davis
444-555-5232
744-555-4137
41,789
Gerald
Murray
610-555-1047
626-555-8318
41,790
Joshua
Cruz
515-555-2526
534-555-5747
41,791
Samuel
Murray
388-555-3440
334-555-7131
41,792
Debra
Allen
878-555-5174
328-555-1045
41,793
Emily
Nelson
537-555-8112
648-555-6155
41,794
Pamela
Wilson
417-555-4475
471-555-1663