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
23,530
Larry
Moore
608-555-8754
875-555-4487
23,531
Michael
Ortiz
685-555-3743
402-555-4801
23,532
Jose
Cruz
638-555-8512
764-555-4864
23,533
Jose
Jones
261-555-2775
564-555-8514
23,534
Debra
Williams
781-555-7374
301-555-7546
23,535
Pamela
Ortiz
873-555-7253
728-555-8618
23,536
Abner
Nelson
643-555-6000
717-555-8346
23,537
Gerald
Donahue
820-555-5754
352-555-7685