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,817,930
Gerald
Wilson
252-555-8118
467-555-4528
3,817,931
Willie
Johnson
884-555-2634
303-555-3712
3,817,932
Linda
Cruz
781-555-8255
720-555-1370
3,817,933
Virginia
Jones
215-555-7610
262-555-7882
3,817,934
Brianna
Cruz
274-555-3322
532-555-2023
3,817,935
Michael
Bailey
480-555-3287
668-555-5857
3,817,936
Abner
Bailey
788-555-6144
370-555-7347
3,817,937
Sandra
Moore
560-555-6510
541-555-6077