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
368,622
Sarah
Cruz
458-555-4630
864-555-6372
368,623
Jack
Jones
430-555-6167
225-555-1412
368,624
Linda
Murray
752-555-5272
450-555-2430
368,625
Kathleen
Black
650-555-3308
807-555-1436
368,626
Jack
Rose
867-555-1484
633-555-8521
368,627
Brianna
Cruz
717-555-5252
345-555-1468
368,628
Gerald
Moore
558-555-5425
606-555-2224
368,629
Christopher
Clark
433-555-1774
202-555-4015