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,516,194
Brianna
Wilson
885-555-5077
654-555-3746
3,516,195
Abby
Rose
437-555-6615
605-555-6502
3,516,196
Jacob
Nelson
244-555-4373
530-555-5321
3,516,197
Timothy
Gomez
761-555-3151
883-555-2323
3,516,198
Debra
Jones
578-555-3714
447-555-3118
3,516,199
Gerald
Lee
737-555-5607
476-555-7840
3,516,200
Brianna
Williams
480-555-4113
271-555-8846
3,516,201
Michael
Gomez
560-555-1228
351-555-6707