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
7,944,805
Kathleen
Baker
853-555-5576
802-555-2262
7,944,806
Sarah
Brown
705-555-4623
574-555-5673
7,944,807
Michael
Johnson
432-555-7512
866-555-1850
7,944,808
Nicholas
Williams
534-555-6454
734-555-7106
7,944,809
Jack
Davis
563-555-6177
246-555-6363
7,944,810
Nicholas
Smiith
674-555-6236
475-555-2205
7,944,811
Pamela
Ortiz
645-555-4413
850-555-4587
7,944,812
Sandra
Nelson
702-555-4832
781-555-2418