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,395
Brianna
Ortiz
410-555-7188
565-555-8657
5,396
Jose
Davis
426-555-4158
882-555-8345
5,397
Maria
Fisher
572-555-4308
551-555-7155
5,398
Sandra
Lee
301-555-2456
321-555-1815
5,399
Joshua
Rose
244-555-3630
530-555-7014
5,400
Samantha
Smiith
212-555-3857
842-555-7004
5,401
Jose
Bailey
644-555-5318
222-555-1651
5,402
Douglas
Smiith
544-555-7588
545-555-8844