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
721,123
Christopher
Gomez
275-555-2001
484-555-8612
721,124
Gerald
Baker
848-555-8715
642-555-4660
721,125
Jose
Bailey
236-555-1143
518-555-4883
721,126
Abby
Murray
637-555-1753
400-555-7218
721,127
Matthew
Lee
230-555-6387
480-555-4006
721,128
Michael
Johnson
621-555-1523
248-555-6747
721,129
Keith
Gomez
858-555-1683
557-555-8307
721,130
Linda
Brown
516-555-2563
286-555-7410