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
192,077
Joshua
Baker
886-555-2536
320-555-5830
192,078
Jack
Brown
282-555-6827
715-555-1514
192,079
Virginia
Hall
545-555-5012
343-555-8531
192,080
Jose
Smiith
365-555-2565
202-555-6788
192,081
Samantha
Jones
856-555-6054
783-555-4844
192,082
Abner
Rose
780-555-3217
545-555-6345
192,083
Abby
Hall
363-555-7726
567-555-8460
192,084
Emily
Gomez
412-555-4331
276-555-8021