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
404
Abby
Fisher
533-555-7771
670-555-3065
405
Christopher
Clark
223-555-7281
865-555-7514
406
Larry
Cruz
636-555-6247
581-555-6300
407
Douglas
Graham
554-555-5203
356-555-3338
408
Kathleen
Nelson
363-555-7723
331-555-1656
409
Kathleen
Fisher
753-555-1576
584-555-4170
410
Nicholas
Fisher
245-555-2668
213-555-2466
411
Kathleen
Allen
601-555-8627
626-555-3057