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
276,862
Michael
Johnson
784-555-2144
810-555-5311
276,863
Linda
Hall
756-555-6353
473-555-6401
276,864
Gerald
Black
812-555-4283
375-555-6347
276,865
Emily
Wilson
577-555-4243
751-555-4287
276,866
Keith
Black
365-555-1118
565-555-6204
276,867
Larry
Black
678-555-1640
373-555-6380
276,868
Jacob
Fisher
221-555-2842
431-555-2342
276,869
Jose
Rose
400-555-6165
768-555-3300