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
28,304
Emily
Fisher
218-555-5806
351-555-3621
28,305
Maria
Ortiz
537-555-6125
315-555-7318
28,306
Debra
Bailey
470-555-8085
663-555-6577
28,307
Larry
Moore
403-555-8123
314-555-2346
28,308
Larry
Rose
313-555-1810
546-555-5552
28,309
Jack
Allen
848-555-7355
437-555-8163
28,310
Matthew
Gomez
248-555-4466
846-555-7813
28,311
Michael
Gonzalez
710-555-7888
317-555-4884