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
3,287
Christopher
Moore
777-555-3705
866-555-7532
3,288
Jose
Cruz
587-555-5707
356-555-8341
3,289
Willie
Gomez
201-555-1425
646-555-4372
3,290
Matthew
Wilson
626-555-8713
510-555-3728
3,291
Christopher
Ortiz
626-555-6757
453-555-1710
3,292
Linda
Baker
204-555-6111
284-555-7066
3,293
Samantha
Ortiz
446-555-3552
787-555-3250
3,294
Samuel
Fisher
620-555-6701
607-555-1572