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
103,789
Larry
Baker
321-555-7846
434-555-4873
103,790
Jacob
Donahue
357-555-7755
230-555-6076
103,791
Abby
Gomez
757-555-5810
363-555-2628
103,792
Jose
Wilson
448-555-2504
686-555-6643
103,793
Nicholas
Nelson
476-555-7228
423-555-4387
103,794
Matthew
Murray
672-555-2113
706-555-6854
103,795
Hailey
Davis
670-555-3278
656-555-6287
103,796
Larry
Moore
782-555-7267
313-555-2157