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
7,913,340
Nicholas
Gomez
387-555-1136
751-555-6743
7,913,341
Sarah
Bailey
403-555-3307
850-555-2406
7,913,342
Timothy
Hall
413-555-7652
406-555-7673
7,913,343
Jacob
Cruz
283-555-5546
268-555-8876
7,913,344
Gerald
Wilson
273-555-3276
831-555-1728
7,913,345
Jacob
Davis
614-555-5647
882-555-5138
7,913,346
Virginia
Moore
860-555-2438
340-555-1107
7,913,347
Joshua
Smiith
742-555-7004
264-555-1628