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
720,596
Virginia
Graham
541-555-5265
815-555-2085
720,597
Michael
Wilson
678-555-1216
773-555-6010
720,598
Emily
Hall
662-555-2500
834-555-2647
720,599
Sarah
Hall
535-555-3412
216-555-5270
720,600
Willie
Smiith
205-555-5645
831-555-5850
720,601
Jack
Fisher
421-555-5378
375-555-8306
720,602
Jose
Moore
672-555-4610
884-555-2214
720,603
Emily
Lee
417-555-1234
283-555-2484