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
2,915
Maria
Gonzalez
707-555-7163
301-555-6858
2,916
Matthew
Baker
831-555-3437
645-555-1427
2,917
Maria
Johnson
802-555-5776
807-555-5276
2,918
Abby
Clark
623-555-4522
635-555-4618
2,919
Keith
Johnson
282-555-4075
445-555-2706
2,920
Abby
Bailey
315-555-8352
628-555-5565
2,921
Gerald
Johnson
213-555-4746
742-555-6360
2,922
Larry
Baker
340-555-1547
563-555-5630