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
621
Kathleen
Gomez
811-555-1157
278-555-6270
622
Larry
Hall
760-555-1431
768-555-4602
623
Samantha
Bailey
223-555-1144
262-555-3473
624
Samuel
Baker
488-555-8866
753-555-8211
625
Christopher
Graham
874-555-5865
800-555-7132
626
Michael
Johnson
786-555-4164
471-555-2270
627
Jose
Rose
648-555-1146
217-555-8106
628
Pamela
Gomez
618-555-2872
553-555-3672