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
4,052,848
Abby
Rose
671-555-2022
866-555-7554
4,052,849
Abner
Wilson
353-555-1038
475-555-4383
4,052,850
Jacob
Brown
268-555-4652
720-555-4245
4,052,851
Sandra
Clark
615-555-5628
334-555-3768
4,052,852
Abby
Donahue
801-555-6670
456-555-1400
4,052,853
Gerald
Allen
831-555-5322
575-555-3510
4,052,854
Joshua
Lee
474-555-3013
513-555-2713
4,052,855
Christopher
Allen
484-555-4747
258-555-6687