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
Jacob
Rose
205-555-3240
415-555-1645
8,093
Timothy
Nelson
286-555-8001
301-555-3610
8,094
Christopher
Clark
636-555-8843
455-555-2005
8,095
Kathleen
Donahue
560-555-7766
388-555-8436
8,096
Willie
Donahue
207-555-6767
857-555-6826
8,097
Virginia
Brown
353-555-7820
410-555-4141
8,098
Christopher
Donahue
604-555-8146
305-555-5032
8,099
Kathleen
Hall
721-555-4551
626-555-1627