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
53,817
Abner
Rose
347-555-2153
678-555-7066
53,818
Willie
Wilson
444-555-4182
715-555-2255
53,819
Samantha
Bailey
751-555-3203
780-555-6688
53,820
Abby
Moore
683-555-1136
510-555-5070
53,821
Gerald
Graham
416-555-3665
466-555-2660
53,822
Linda
Gomez
610-555-5241
413-555-2565
53,823
Jack
Ortiz
326-555-2666
546-555-4170
53,824
Jose
Cruz
365-555-2080
736-555-3641