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
5,551,295
Virginia
Fisher
334-555-1616
556-555-3026
5,551,296
Gerald
Graham
354-555-5001
516-555-3452
5,551,297
Pamela
Rose
413-555-6102
330-555-3568
5,551,298
Sandra
Hall
461-555-7656
765-555-7270
5,551,299
Debra
Ortiz
307-555-7805
618-555-1872
5,551,300
Jacob
Black
642-555-4653
268-555-7373
5,551,301
Kathleen
Cruz
751-555-7874
484-555-7442
5,551,302
Samantha
Johnson
635-555-7826
716-555-2446