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
5,550
Abby
Bailey
412-555-1063
202-555-4127
5,551
Nicholas
Baker
542-555-8740
278-555-1237
5,552
Matthew
Fisher
405-555-5354
422-555-2716
5,553
Timothy
Baker
430-555-7616
685-555-1143
5,554
Debra
Lee
686-555-4326
718-555-1047
5,555
Nicholas
Baker
880-555-7345
726-555-6115
5,556
Larry
Murray
806-555-1622
878-555-3611
5,557
Jacob
Johnson
333-555-7504
570-555-5565