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
21,515
Abner
Cruz
200-555-7222
505-555-8176
21,516
Jose
Bailey
655-555-8570
741-555-8000
21,517
Abner
Williams
446-555-1756
634-555-4252
21,518
Keith
Allen
681-555-7855
257-555-4858
21,519
Hailey
Brown
870-555-1770
510-555-4302
21,520
Maria
Hall
221-555-7123
431-555-3668
21,521
Sarah
Allen
721-555-8247
667-555-6840
21,522
Kathleen
Gomez
732-555-4683
784-555-4087