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
753,115
Brianna
Ortiz
265-555-7306
470-555-3388
753,116
Matthew
Ortiz
845-555-1260
570-555-2075
753,117
Emily
Gonzalez
435-555-6662
736-555-4711
753,118
Jacob
Gomez
483-555-8545
351-555-6361
753,119
Gerald
Smiith
706-555-3556
355-555-6568
753,120
Joshua
Moore
365-555-3817
410-555-2657
753,121
Debra
Wilson
301-555-8070
825-555-7254
753,122
Timothy
Moore
602-555-4035
857-555-4324