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
654,535
Brianna
Clark
871-555-1263
206-555-2534
654,536
Sarah
Murray
806-555-1338
243-555-1558
654,537
Abby
Cruz
458-555-5167
201-555-3247
654,538
Douglas
Fisher
340-555-1530
687-555-5441
654,539
Hailey
Graham
631-555-7456
782-555-2053
654,540
Timothy
Graham
477-555-4247
242-555-7861
654,541
Willie
Wilson
554-555-2561
632-555-5667
654,542
Abby
Allen
826-555-7377
501-555-3212