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
1,464,813
Joshua
Johnson
253-555-2884
803-555-2570
1,464,814
Joshua
Hall
231-555-5843
436-555-3158
1,464,815
Nicholas
Murray
871-555-4536
680-555-4802
1,464,816
Sarah
Davis
334-555-2116
857-555-5748
1,464,817
Jose
Williams
285-555-8702
256-555-2616
1,464,818
Abby
Allen
748-555-2625
285-555-6526
1,464,819
Christopher
Clark
260-555-5801
275-555-6263
1,464,820
Jose
Fisher
784-555-2618
780-555-7608