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
104,161
Emily
Baker
500-555-7525
233-555-5246
104,162
Joshua
Gomez
604-555-2010
500-555-4225
104,163
Maria
Allen
205-555-7361
637-555-3865
104,164
Keith
Baker
824-555-8151
223-555-2123
104,165
Willie
Rose
251-555-8743
711-555-7588
104,166
Sarah
Jones
717-555-7413
654-555-5504
104,167
Linda
Moore
864-555-6080
578-555-3828
104,168
Pamela
Nelson
751-555-6788
446-555-7142