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,562,548
Brianna
Ortiz
226-555-7404
273-555-6300
5,562,549
Douglas
Baker
466-555-7173
317-555-2027
5,562,550
Christopher
Graham
720-555-4458
246-555-8073
5,562,551
Virginia
Fisher
315-555-7062
651-555-7063
5,562,552
Samantha
Johnson
662-555-7080
213-555-3354
5,562,553
Virginia
Johnson
611-555-8226
580-555-3608
5,562,554
Debra
Bailey
443-555-7282
834-555-8032
5,562,555
Timothy
Jones
500-555-8560
284-555-8410