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
3,792,758
Timothy
Gonzalez
485-555-2631
755-555-1800
3,792,759
Sarah
Brown
737-555-6483
837-555-3556
3,792,760
Larry
Lee
844-555-6231
636-555-7846
3,792,761
Hailey
Nelson
848-555-5330
240-555-8117
3,792,762
Nicholas
Allen
565-555-4848
232-555-3710
3,792,763
Sandra
Gomez
856-555-5321
738-555-1582
3,792,764
Debra
Hall
377-555-8105
631-555-2375
3,792,765
Jacob
Smiith
846-555-4040
348-555-8744