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
2,109
Jacob
Baker
742-555-3204
480-555-2051
2,110
Samantha
Gomez
636-555-4854
442-555-2130
2,111
Hailey
Fisher
835-555-5302
222-555-7385
2,112
Sarah
Moore
531-555-2335
573-555-1426
2,113
Jacob
Baker
466-555-4344
332-555-7381
2,114
Debra
Hall
387-555-2606
302-555-8374
2,115
Kathleen
Donahue
582-555-5066
621-555-8537
2,116
Willie
Murray
512-555-8816
356-555-2601