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
758,370
Gerald
Graham
287-555-1130
666-555-5783
758,371
Brianna
Cruz
340-555-6677
435-555-3747
758,372
Joshua
Davis
853-555-6617
641-555-2484
758,373
Sandra
Rose
882-555-5152
252-555-5827
758,374
Timothy
Lee
655-555-5656
846-555-1302
758,375
Samantha
Lee
660-555-8475
417-555-4302
758,376
Nicholas
Graham
783-555-8484
524-555-7710
758,377
Samuel
Wilson
614-555-6808
251-555-6561