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
745,923
Brianna
Gonzalez
230-555-3755
442-555-2062
745,924
Michael
Gonzalez
860-555-3866
674-555-7858
745,925
Sandra
Hall
555-555-6730
510-555-3505
745,926
Christopher
Cruz
631-555-5684
751-555-1830
745,927
Abner
Rose
278-555-2104
313-555-4583
745,928
Douglas
Brown
475-555-5653
460-555-1823
745,929
Hailey
Murray
806-555-5217
811-555-2770
745,930
Larry
Baker
630-555-4481
463-555-4300