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
39,309
Linda
Cruz
211-555-2572
424-555-4785
39,310
Nicholas
Hall
377-555-6454
781-555-7031
39,311
Jacob
Donahue
741-555-1557
802-555-7063
39,312
Kathleen
Davis
376-555-1721
216-555-8112
39,313
Michael
Donahue
883-555-1634
288-555-7513
39,314
Emily
Davis
820-555-8065
257-555-3241
39,315
Debra
Allen
281-555-3618
438-555-2684
39,316
Sarah
Black
802-555-7578
401-555-5717