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
1,959,046
Pamela
Hall
741-555-3130
310-555-6135
1,959,047
Emily
Donahue
617-555-5771
226-555-3254
1,959,048
Jacob
Ortiz
516-555-1778
726-555-3447
1,959,049
Emily
Black
744-555-6645
247-555-5324
1,959,050
Jacob
Bailey
446-555-2781
580-555-7543
1,959,051
Abby
Fisher
454-555-7440
352-555-5656
1,959,052
Samuel
Hall
253-555-4730
828-555-1136
1,959,053
Sarah
Murray
715-555-8885
704-555-2677