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
656,147
Virginia
Allen
628-555-8650
216-555-2416
656,148
Hailey
Jones
864-555-2762
383-555-8723
656,149
Keith
Davis
453-555-1022
618-555-4882
656,150
Emily
Jones
766-555-6622
876-555-4007
656,151
Hailey
Gomez
614-555-6244
225-555-5051
656,152
Nicholas
Jones
266-555-8648
853-555-2352
656,153
Samuel
Jones
258-555-5163
273-555-3037
656,154
Samuel
Hall
252-555-4501
771-555-4536