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
14,788
Debra
Fisher
306-555-8385
368-555-1814
14,789
Jose
Murray
487-555-1786
464-555-8037
14,790
Brianna
Baker
630-555-7870
401-555-8741
14,791
Kathleen
Graham
720-555-2686
383-555-2782
14,792
Jose
Johnson
385-555-2646
226-555-6062
14,793
Samantha
Clark
845-555-2115
317-555-4786
14,794
Gerald
Brown
636-555-3823
264-555-5461
14,795
Debra
Lee
355-555-3524
315-555-3133