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
25,266
Samantha
Fisher
556-555-3183
318-555-7075
25,267
Maria
Brown
228-555-1534
365-555-7133
25,268
Larry
Ortiz
557-555-4810
258-555-7010
25,269
Emily
Murray
381-555-4425
425-555-6852
25,270
Abby
Fisher
520-555-4235
472-555-6584
25,271
Matthew
Rose
740-555-8535
573-555-1305
25,272
Debra
Rose
721-555-7635
812-555-8377
25,273
Jose
Nelson
308-555-8278
404-555-6286