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,811,606
Larry
Fisher
780-555-7066
475-555-5573
3,811,607
Abby
Gomez
686-555-5166
585-555-6268
3,811,608
Michael
Rose
855-555-2787
288-555-5156
3,811,609
Abby
Jones
327-555-2478
783-555-3668
3,811,610
Maria
Lee
814-555-1525
574-555-8403
3,811,611
Sandra
Baker
311-555-8064
711-555-7683
3,811,612
Sarah
Bailey
514-555-2146
886-555-6015
3,811,613
Christopher
Rose
246-555-4004
814-555-5840