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
164,859
Virginia
Lee
771-555-4181
425-555-7177
164,860
Christopher
Davis
757-555-4715
553-555-1410
164,861
Nicholas
Brown
688-555-3017
643-555-2683
164,862
Samantha
Bailey
237-555-3788
622-555-6538
164,863
Virginia
Gomez
647-555-2305
252-555-4230
164,864
Gerald
Nelson
571-555-6224
442-555-8613
164,865
Pamela
Baker
381-555-8757
405-555-2114
164,866
Timothy
Moore
622-555-3535
871-555-2080