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
707,514
Jack
Allen
553-555-6206
854-555-7767
707,515
Jack
Gomez
257-555-4208
273-555-6845
707,516
Nicholas
Gomez
878-555-8115
733-555-6466
707,517
Jack
Bailey
658-555-5086
507-555-7057
707,518
Keith
Rose
425-555-7625
365-555-5742
707,519
Emily
Murray
381-555-7750
363-555-7766
707,520
Joshua
Ortiz
848-555-8380
753-555-6378
707,521
Maria
Gonzalez
557-555-6028
707-555-6311