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
54,003
Abner
Wilson
482-555-1655
327-555-7546
54,004
Douglas
Brown
784-555-7205
574-555-1314
54,005
Gerald
Smiith
532-555-8420
736-555-7642
54,006
Emily
Jones
601-555-6071
348-555-6223
54,007
Jacob
Hall
620-555-8703
868-555-3877
54,008
Emily
Rose
421-555-7067
270-555-1565
54,009
Christopher
Murray
802-555-5882
272-555-6167
54,010
Linda
Jones
488-555-6308
458-555-4507