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
22,228
Nicholas
Williams
813-555-3638
438-555-3332
22,229
Keith
Hall
235-555-7433
488-555-7376
22,230
Larry
Clark
335-555-7413
321-555-2368
22,231
Jack
Graham
336-555-6486
763-555-2025
22,232
Christopher
Gomez
284-555-5370
444-555-8237
22,233
Gerald
Fisher
306-555-7848
570-555-6787
22,234
Nicholas
Wilson
433-555-6255
361-555-8013
22,235
Maria
Clark
322-555-1686
531-555-3763