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,753,578
Linda
Brown
243-555-7648
858-555-4311
1,753,579
Maria
Rose
640-555-2768
601-555-2520
1,753,580
Sandra
Brown
437-555-4614
732-555-8456
1,753,581
Jose
Bailey
508-555-6636
854-555-5134
1,753,582
Michael
Baker
882-555-3760
440-555-8062
1,753,583
Sarah
Brown
371-555-6242
771-555-1000
1,753,584
Abby
Wilson
225-555-2510
717-555-2375
1,753,585
Brianna
Hall
536-555-6817
627-555-2831