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
6,007,056
Brianna
Cruz
254-555-7378
328-555-5674
6,007,057
Debra
Baker
358-555-1617
573-555-3312
6,007,058
Joshua
Gonzalez
710-555-4630
652-555-6864
6,007,059
Christopher
Lee
726-555-2865
645-555-2131
6,007,060
Sandra
Graham
631-555-1240
630-555-4155
6,007,061
Sandra
Allen
683-555-7732
600-555-2301
6,007,062
Emily
Williams
537-555-6824
741-555-5682
6,007,063
Douglas
Allen
558-555-2124
883-555-7050