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
74,215
Keith
Allen
503-555-2337
247-555-5254
74,216
Michael
Bailey
368-555-1584
704-555-1822
74,217
Jack
Nelson
242-555-1714
510-555-1827
74,218
Linda
Gonzalez
342-555-6078
726-555-2384
74,219
Nicholas
Allen
212-555-8441
668-555-7377
74,220
Samuel
Cruz
566-555-8570
524-555-2757
74,221
Joshua
Smiith
602-555-2685
627-555-2736
74,222
Brianna
Lee
450-555-1068
827-555-4324