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
5,116
Abner
Black
458-555-4521
204-555-1300
5,117
Linda
Smiith
348-555-7804
557-555-5686
5,118
Jacob
Graham
463-555-4526
805-555-1847
5,119
Jacob
Brown
813-555-1828
452-555-6765
5,120
Maria
Cruz
544-555-5761
350-555-5362
5,121
Jose
Clark
405-555-5077
531-555-6066
5,122
Abner
Allen
875-555-4676
817-555-2360
5,123
Emily
Gomez
648-555-7783
272-555-3684