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
652
Jose
Donahue
424-555-4167
660-555-7855
653
Linda
Murray
734-555-6841
577-555-6802
654
Kathleen
Smiith
735-555-4478
784-555-7552
655
Maria
Brown
700-555-5588
584-555-7843
656
Jose
Baker
504-555-7347
361-555-1545
657
Larry
Gomez
533-555-4854
340-555-8200
658
Matthew
Gonzalez
801-555-4104
332-555-2773
659
Larry
Brown
836-555-8534
626-555-2800