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
100,286
Timothy
Allen
218-555-4355
364-555-7362
100,287
Michael
Fisher
712-555-3752
568-555-4176
100,288
Brianna
Ortiz
730-555-1565
406-555-7412
100,289
Timothy
Brown
317-555-2240
546-555-2201
100,290
Virginia
Moore
607-555-3367
668-555-3205
100,291
Douglas
Graham
302-555-4880
434-555-7032
100,292
Sandra
Fisher
375-555-7635
338-555-1608
100,293
Sarah
Black
835-555-7605
470-555-8432