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,605
Jacob
Johnson
807-555-7884
665-555-4044
2,606
Abner
Bailey
677-555-2735
766-555-3482
2,607
Sandra
Gonzalez
302-555-5227
567-555-3812
2,608
Abner
Smiith
277-555-7122
206-555-4265
2,609
Samuel
Brown
861-555-6385
788-555-7118
2,610
Matthew
Fisher
606-555-4202
354-555-6804
2,611
Douglas
Gonzalez
618-555-3563
663-555-2576
2,612
Matthew
Allen
644-555-1534
447-555-1750