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
126,853
Willie
Smiith
287-555-1415
478-555-2126
126,854
Debra
Brown
780-555-4560
587-555-2420
126,855
Joshua
Baker
362-555-1631
567-555-1732
126,856
Jacob
Fisher
405-555-1727
747-555-4244
126,857
Virginia
Brown
667-555-6150
543-555-6120
126,858
Sandra
Brown
206-555-5577
577-555-1700
126,859
Samuel
Ortiz
752-555-5832
842-555-5888
126,860
Gerald
Murray
736-555-7007
615-555-7463