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
68,976
Willie
Lee
377-555-2637
828-555-1142
68,977
Pamela
Baker
520-555-5358
801-555-7067
68,978
Brianna
Gonzalez
725-555-7065
282-555-8227
68,979
Jose
Johnson
722-555-1113
268-555-6884
68,980
Matthew
Baker
454-555-1741
656-555-3201
68,981
Willie
Clark
483-555-2634
702-555-5125
68,982
Linda
Gomez
738-555-3128
212-555-7337
68,983
Kathleen
Gonzalez
883-555-8704
380-555-7382