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
11,781
Jacob
Gomez
420-555-7816
586-555-6107
11,782
Willie
Gonzalez
581-555-4020
670-555-1620
11,783
Virginia
Brown
204-555-2564
535-555-4715
11,784
Sandra
Cruz
463-555-2014
266-555-1054
11,785
Joshua
Rose
220-555-4044
355-555-8644
11,786
Debra
Smiith
230-555-5835
741-555-3074
11,787
Maria
Smiith
277-555-8847
383-555-5433
11,788
Samantha
Ortiz
608-555-7805
356-555-2737