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
149,731
Pamela
Nelson
551-555-1166
555-555-4002
149,732
Jack
Rose
658-555-5778
456-555-8348
149,733
Abby
Hall
461-555-4742
434-555-6016
149,734
Joshua
Hall
580-555-8370
454-555-1311
149,735
Willie
Lee
215-555-6653
365-555-5674
149,736
Joshua
Fisher
710-555-1005
723-555-7246
149,737
Brianna
Ortiz
507-555-1064
536-555-3047
149,738
Matthew
Gonzalez
724-555-4486
806-555-5683