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
5,556,069
Timothy
Clark
411-555-6210
417-555-2372
5,556,070
Samuel
Gomez
253-555-5716
745-555-4246
5,556,071
Brianna
Wilson
571-555-1286
710-555-1661
5,556,072
Nicholas
Black
876-555-2414
502-555-5320
5,556,073
Michael
Smiith
276-555-5604
704-555-2507
5,556,074
Abby
Black
680-555-4466
886-555-6731
5,556,075
Kathleen
Brown
483-555-6828
260-555-8705
5,556,076
Kathleen
Brown
353-555-7155
222-555-5515