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
54,375
Samuel
Brown
248-555-8773
802-555-3043
54,376
Sandra
Lee
742-555-1133
763-555-7344
54,377
Samantha
Smiith
660-555-5646
230-555-6877
54,378
Debra
Gonzalez
884-555-2422
824-555-1612
54,379
Abby
Gonzalez
200-555-3870
727-555-6081
54,380
Douglas
Ortiz
614-555-7246
680-555-1136
54,381
Brianna
Murray
580-555-7407
866-555-5631
54,382
Keith
Allen
452-555-5326
376-555-4122