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
7,131
Larry
Donahue
316-555-2052
510-555-1405
7,132
Abby
Murray
373-555-8738
606-555-4348
7,133
Linda
Moore
352-555-1667
305-555-7732
7,134
Jack
Lee
531-555-6437
383-555-7308
7,135
Nicholas
Davis
863-555-7534
550-555-8478
7,136
Gerald
Davis
350-555-5074
732-555-3548
7,137
Abner
Gonzalez
504-555-2452
666-555-6043
7,138
Keith
Cruz
752-555-2725
316-555-3125