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
14,540
Larry
Davis
542-555-4122
853-555-7062
14,541
Samantha
Gonzalez
773-555-3846
220-555-4508
14,542
Brianna
Fisher
362-555-8333
638-555-6360
14,543
Kathleen
Davis
855-555-1055
615-555-1743
14,544
Keith
Baker
871-555-2743
782-555-4741
14,545
Christopher
Gonzalez
382-555-5435
204-555-5634
14,546
Brianna
Nelson
408-555-1844
344-555-1012
14,547
Virginia
Moore
500-555-2347
430-555-5087