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
721,340
Sarah
Clark
677-555-5248
230-555-2631
721,341
Pamela
Johnson
262-555-4238
488-555-3826
721,342
Hailey
Gomez
516-555-7676
515-555-1016
721,343
Hailey
Cruz
565-555-3874
715-555-8727
721,344
Jacob
Baker
564-555-2305
828-555-5868
721,345
Sarah
Brown
318-555-4575
834-555-6144
721,346
Linda
Brown
387-555-7070
811-555-4804
721,347
Abby
Cruz
322-555-8850
786-555-4110