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
1,464,906
Willie
Gonzalez
407-555-1216
641-555-4761
1,464,907
Maria
Black
504-555-8444
874-555-8202
1,464,908
Michael
Bailey
681-555-3803
747-555-2574
1,464,909
Sandra
Williams
351-555-1123
328-555-7845
1,464,910
Jose
Rose
417-555-1545
557-555-3680
1,464,911
Hailey
Nelson
245-555-1454
288-555-2364
1,464,912
Debra
Black
363-555-7406
210-555-5274
1,464,913
Abner
Davis
563-555-8684
705-555-7034