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,422,463
Debra
Williams
618-555-4124
646-555-7367
3,422,464
Sarah
Gomez
508-555-3556
243-555-5881
3,422,465
Jacob
Cruz
681-555-1527
521-555-5575
3,422,466
Jose
Williams
586-555-8665
255-555-8013
3,422,467
Timothy
Lee
573-555-4505
220-555-7267
3,422,468
Gerald
Murray
516-555-1642
675-555-6074
3,422,469
Kathleen
Graham
257-555-8220
371-555-5615
3,422,470
Jack
Hall
528-555-3520
645-555-3770