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
63
Emily
Fisher
874-555-8545
267-555-2414
64
Maria
Allen
340-555-6082
376-555-6616
65
Hailey
Gomez
806-555-3643
436-555-2106
66
Matthew
Wilson
738-555-1481
500-555-8043
67
Maria
Allen
438-555-8604
580-555-1555
68
Christopher
Graham
871-555-7248
314-555-7426
69
Samuel
Brown
357-555-3604
650-555-1025
70
Sandra
Williams
572-555-3775
805-555-4138