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
3,761,696
Linda
Wilson
434-555-2550
210-555-2255
3,761,697
Sarah
Johnson
622-555-3542
687-555-4835
3,761,698
Nicholas
Gonzalez
838-555-4250
230-555-6085
3,761,699
Douglas
Murray
866-555-4552
482-555-5541
3,761,700
Samantha
Black
736-555-8776
541-555-2433
3,761,701
Timothy
Murray
873-555-1642
428-555-2175
3,761,702
Maria
Ortiz
436-555-1105
762-555-2723
3,761,703
Jacob
Cruz
788-555-7018
587-555-4670