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
68,604
Willie
Gomez
284-555-4562
458-555-3665
68,605
Pamela
Allen
237-555-4630
831-555-7355
68,606
Abby
Gomez
344-555-8023
407-555-7421
68,607
Hailey
Fisher
638-555-6565
534-555-2503
68,608
Brianna
Cruz
370-555-4208
800-555-5850
68,609
Abner
Moore
881-555-3511
826-555-3555
68,610
Gerald
Bailey
515-555-6405
667-555-8550
68,611
Pamela
Clark
881-555-6745
816-555-2685