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
14,695
Maria
Fisher
712-555-2077
237-555-3507
14,696
Samantha
Gomez
833-555-4877
357-555-6558
14,697
Jack
Fisher
567-555-1780
633-555-2070
14,698
Matthew
Wilson
505-555-2178
750-555-7531
14,699
Kathleen
Murray
735-555-7105
362-555-2758
14,700
Timothy
Baker
217-555-2606
802-555-1413
14,701
Nicholas
Johnson
345-555-4353
725-555-7805
14,702
Gerald
Hall
882-555-5037
436-555-2756