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
5,496,549
Joshua
Donahue
653-555-2406
214-555-7333
5,496,550
Abner
Fisher
742-555-5315
577-555-3262
5,496,551
Larry
Black
762-555-5716
362-555-3377
5,496,552
Virginia
Graham
625-555-1317
348-555-4172
5,496,553
Gerald
Bailey
463-555-3668
454-555-5280
5,496,554
Kathleen
Gonzalez
436-555-7137
341-555-8573
5,496,555
Joshua
Jones
442-555-7332
783-555-5322
5,496,556
Matthew
Nelson
381-555-4524
336-555-5610