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
528
Abby
Allen
651-555-7762
767-555-6557
529
Emily
Nelson
832-555-8661
744-555-6018
530
Jacob
Black
302-555-4305
741-555-6812
531
Larry
Davis
802-555-5633
362-555-2245
532
Abby
Murray
455-555-4080
638-555-8667
533
Timothy
Jones
458-555-2228
325-555-5550
534
Gerald
Brown
548-555-2324
271-555-7386
535
Abby
Clark
436-555-8720
274-555-2825