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
655,093
Timothy
Moore
250-555-4664
337-555-6387
655,094
Linda
Jones
212-555-2004
653-555-7112
655,095
Douglas
Jones
708-555-8584
882-555-5102
655,096
Hailey
Cruz
471-555-1888
468-555-2721
655,097
Jack
Moore
873-555-2760
857-555-6061
655,098
Virginia
Bailey
573-555-2464
357-555-4026
655,099
Linda
Lee
558-555-7470
222-555-4025
655,100
Joshua
Rose
415-555-1173
467-555-3514