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
8,092
Sandra
Brown
244-555-4478
574-555-4588
8,093
Linda
Rose
341-555-7861
707-555-3320
8,094
Willie
Lee
451-555-6074
840-555-7884
8,095
Pamela
Baker
274-555-6400
214-555-7316
8,096
Matthew
Ortiz
676-555-7065
202-555-4406
8,097
Abby
Graham
885-555-5414
757-555-4846
8,098
Emily
Donahue
782-555-6505
860-555-1727
8,099
Abby
Jones
453-555-5652
616-555-6320