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
2,791
Debra
Allen
333-555-2648
874-555-6678
2,792
Keith
Bailey
484-555-4267
427-555-7621
2,793
Sandra
Jones
532-555-7572
412-555-5300
2,794
Matthew
Ortiz
278-555-1871
405-555-4326
2,795
Keith
Williams
885-555-1622
881-555-6282
2,796
Hailey
Nelson
702-555-8612
733-555-3504
2,797
Abner
Fisher
831-555-4380
612-555-2372
2,798
Matthew
Graham
832-555-2501
434-555-2808