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
226,797
Sandra
Hall
474-555-3845
866-555-2051
226,798
Virginia
Gonzalez
228-555-3176
340-555-6212
226,799
Matthew
Johnson
617-555-1474
804-555-2430
226,800
Pamela
Jones
613-555-6526
565-555-1538
226,801
Michael
Davis
513-555-3113
614-555-1155
226,802
Jacob
Allen
745-555-5262
500-555-7222
226,803
Sarah
Clark
603-555-7086
246-555-8578
226,804
Emily
Wilson
653-555-2022
338-555-7224