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
73,223
Maria
Ortiz
863-555-1161
741-555-2002
73,224
Matthew
Nelson
446-555-8538
775-555-5145
73,225
Abner
Moore
783-555-2388
714-555-7250
73,226
Maria
Brown
815-555-8542
244-555-8461
73,227
Emily
Williams
227-555-5322
733-555-1535
73,228
Kathleen
Graham
346-555-4252
251-555-3882
73,229
Willie
Cruz
406-555-6021
330-555-8363
73,230
Matthew
Bailey
834-555-5152
252-555-1343