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
18,787
Jose
Brown
612-555-2405
574-555-3460
18,788
Nicholas
Moore
287-555-1730
752-555-2326
18,789
Larry
Davis
532-555-6777
276-555-6145
18,790
Matthew
Davis
653-555-8066
313-555-4208
18,791
Sarah
Wilson
832-555-3576
363-555-7017
18,792
Nicholas
Moore
537-555-2310
857-555-8072
18,793
Timothy
Allen
585-555-3556
345-555-6011
18,794
Abby
Nelson
656-555-2675
707-555-6718