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
745,985
Pamela
Wilson
776-555-2231
626-555-5115
745,986
Hailey
Baker
203-555-5314
274-555-8827
745,987
Larry
Donahue
410-555-6635
402-555-8021
745,988
Linda
Baker
571-555-8252
773-555-1505
745,989
Hailey
Allen
566-555-4261
774-555-7762
745,990
Sarah
Brown
230-555-1480
468-555-6374
745,991
Matthew
Wilson
586-555-2182
800-555-6362
745,992
Nicholas
Brown
778-555-5213
303-555-4283