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
750,759
Abner
Davis
314-555-2673
656-555-3777
750,760
Samantha
Lee
773-555-7278
878-555-1888
750,761
Matthew
Hall
454-555-4173
426-555-5406
750,762
Jacob
Rose
302-555-4834
384-555-2764
750,763
Gerald
Gonzalez
767-555-1015
202-555-1506
750,764
Gerald
Clark
332-555-6481
510-555-2280
750,765
Joshua
Lee
812-555-4041
317-555-1510
750,766
Jacob
Nelson
782-555-2457
460-555-4017