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
44,548
Larry
Davis
411-555-3433
632-555-2734
44,549
Maria
Moore
845-555-7187
255-555-6474
44,550
Christopher
Bailey
427-555-5722
886-555-5830
44,551
Christopher
Black
275-555-1080
301-555-6817
44,552
Maria
Gonzalez
645-555-5553
671-555-7447
44,553
Kathleen
Moore
446-555-7714
413-555-5823
44,554
Pamela
Moore
502-555-5810
666-555-1641
44,555
Brianna
Ortiz
454-555-6544
271-555-3020