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,425,780
Joshua
Allen
338-555-6617
506-555-3700
3,425,781
Sarah
Fisher
715-555-6810
384-555-6836
3,425,782
Jacob
Allen
603-555-8001
257-555-3205
3,425,783
Sandra
Gonzalez
548-555-1654
203-555-3021
3,425,784
Kathleen
Wilson
513-555-3374
565-555-5426
3,425,785
Abby
Cruz
620-555-3672
463-555-4805
3,425,786
Michael
Graham
583-555-6737
412-555-6320
3,425,787
Samuel
Baker
772-555-6470
827-555-1817