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
22,631
Sarah
Bailey
750-555-1271
825-555-3777
22,632
Jack
Rose
885-555-7573
803-555-3274
22,633
Nicholas
Jones
674-555-1834
701-555-5511
22,634
Willie
Smiith
687-555-3401
680-555-7676
22,635
Sandra
Brown
721-555-5402
367-555-5102
22,636
Samuel
Nelson
310-555-6708
557-555-1037
22,637
Abby
Murray
256-555-4111
881-555-7356
22,638
Gerald
Cruz
227-555-5766
643-555-4773