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
191,953
Christopher
Black
585-555-3486
851-555-2713
191,954
Joshua
Murray
221-555-5867
406-555-2676
191,955
Jose
Black
600-555-3711
476-555-7285
191,956
Timothy
Smiith
735-555-3700
777-555-3305
191,957
Sarah
Gomez
577-555-6636
810-555-3175
191,958
Matthew
Clark
403-555-8885
515-555-8130
191,959
Debra
Black
602-555-7268
348-555-6670
191,960
Jacob
Smiith
626-555-4173
785-555-4107