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,999,089
Hailey
Cruz
508-555-5323
373-555-7137
5,999,090
Douglas
Donahue
206-555-5431
855-555-7124
5,999,091
Nicholas
Murray
821-555-2485
300-555-5173
5,999,092
Gerald
Ortiz
813-555-4631
512-555-1086
5,999,093
Linda
Ortiz
538-555-8270
831-555-3143
5,999,094
Maria
Allen
821-555-5731
558-555-6673
5,999,095
Michael
Ortiz
547-555-3606
313-555-7818
5,999,096
Debra
Lee
701-555-4015
685-555-3571