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
718,519
Samantha
Smiith
817-555-5145
383-555-4255
718,520
Samuel
Hall
655-555-7052
847-555-5654
718,521
Gerald
Clark
841-555-6840
434-555-7616
718,522
Michael
Moore
810-555-8334
844-555-1502
718,523
Nicholas
Smiith
517-555-4735
655-555-3434
718,524
Timothy
Davis
334-555-7556
518-555-8055
718,525
Gerald
Lee
850-555-5450
746-555-1085
718,526
Keith
Gonzalez
748-555-8642
754-555-2085