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
5,998,159
Gerald
Clark
800-555-1385
633-555-4604
5,998,160
Michael
Lee
331-555-2287
807-555-3655
5,998,161
Matthew
Fisher
421-555-4736
431-555-5645
5,998,162
Kathleen
Lee
238-555-5746
425-555-3351
5,998,163
Jacob
Davis
572-555-1126
680-555-2744
5,998,164
Abner
Gonzalez
513-555-1375
531-555-7448
5,998,165
Samantha
Johnson
647-555-7682
317-555-5834
5,998,166
Michael
Gonzalez
802-555-8635
608-555-7526