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
3,827,354
Christopher
Johnson
724-555-6657
430-555-6778
3,827,355
Gerald
Gonzalez
668-555-8080
530-555-4117
3,827,356
Linda
Jones
732-555-7233
883-555-5527
3,827,357
Willie
Allen
816-555-7803
627-555-2372
3,827,358
Michael
Bailey
664-555-5022
371-555-2284
3,827,359
Matthew
Clark
856-555-4448
311-555-1268
3,827,360
Nicholas
Black
241-555-4575
644-555-8862
3,827,361
Joshua
Ortiz
716-555-3471
732-555-6407