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,240
Jose
Brown
738-555-3205
255-555-8721
5,241
Emily
Gonzalez
237-555-6837
738-555-5601
5,242
Matthew
Nelson
485-555-5842
678-555-4421
5,243
Nicholas
Johnson
231-555-8112
852-555-1446
5,244
Kathleen
Gonzalez
287-555-4755
428-555-6364
5,245
Jacob
Ortiz
444-555-1745
821-555-4371
5,246
Sarah
Allen
526-555-5101
843-555-3036
5,247
Jose
Hall
567-555-6260
431-555-2556