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
720,379
Samantha
Baker
670-555-6400
455-555-6737
720,380
Abner
Gonzalez
557-555-1111
462-555-1618
720,381
Christopher
Jones
647-555-6445
270-555-3020
720,382
Jose
Nelson
358-555-4003
268-555-2782
720,383
Sarah
Gonzalez
211-555-5287
502-555-7844
720,384
Douglas
Fisher
328-555-1410
682-555-6820
720,385
Virginia
Ortiz
448-555-1476
633-555-3477
720,386
Debra
Donahue
628-555-7845
813-555-3161