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
44,920
Abner
Nelson
338-555-3402
210-555-4073
44,921
Jack
Williams
213-555-7524
477-555-3125
44,922
Pamela
Nelson
428-555-2716
715-555-3226
44,923
Virginia
Wilson
638-555-6154
311-555-4606
44,924
Linda
Donahue
751-555-7671
775-555-2076
44,925
Pamela
Donahue
430-555-3085
831-555-2511
44,926
Samuel
Graham
423-555-7881
446-555-4620
44,927
Maria
Rose
761-555-4642
857-555-1054