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
23,561
Samuel
Ortiz
704-555-7887
737-555-2743
23,562
Nicholas
Brown
447-555-1644
780-555-5215
23,563
Douglas
Bailey
814-555-5072
883-555-8346
23,564
Virginia
Lee
637-555-5808
407-555-1003
23,565
Jose
Cruz
710-555-6364
751-555-6006
23,566
Samantha
Fisher
563-555-7767
625-555-5738
23,567
Matthew
Cruz
435-555-1867
852-555-3153
23,568
Jack
Ortiz
726-555-8687
466-555-4373