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
100,875
Jack
Baker
832-555-8651
651-555-5047
100,876
Sandra
Cruz
510-555-7364
282-555-6642
100,877
Willie
Gonzalez
367-555-7378
270-555-7355
100,878
Virginia
Rose
270-555-7444
543-555-8003
100,879
Hailey
Baker
745-555-6534
855-555-8356
100,880
Sandra
Baker
403-555-5675
747-555-2661
100,881
Douglas
Cruz
807-555-8106
440-555-7380
100,882
Emily
Rose
574-555-5312
621-555-4625