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
53,073
Joshua
Davis
201-555-7050
653-555-5863
53,074
Brianna
Ortiz
306-555-8731
816-555-5740
53,075
Sandra
Wilson
700-555-3431
803-555-1305
53,076
Hailey
Williams
487-555-3586
407-555-5713
53,077
Keith
Williams
660-555-8320
538-555-4371
53,078
Sandra
Graham
614-555-2862
200-555-3347
53,079
Brianna
Fisher
381-555-2150
387-555-6767
53,080
Emily
Murray
313-555-6753
212-555-8350