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
111,911
Nicholas
Graham
582-555-8633
818-555-6672
111,912
Kathleen
Bailey
734-555-1573
431-555-3737
111,913
Jack
Wilson
233-555-7038
282-555-3218
111,914
Jose
Donahue
340-555-1360
333-555-2883
111,915
Jack
Gonzalez
467-555-4752
675-555-6518
111,916
Kathleen
Nelson
802-555-5507
764-555-8602
111,917
Linda
Johnson
237-555-4778
771-555-5871
111,918
Sandra
Allen
205-555-1138
270-555-5206