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
28,986
Jack
Fisher
451-555-4062
205-555-4024
28,987
Gerald
Brown
706-555-6786
650-555-6587
28,988
Linda
Fisher
375-555-1542
870-555-7608
28,989
Hailey
Brown
431-555-8852
347-555-6223
28,990
Larry
Gonzalez
872-555-4030
703-555-4426
28,991
Maria
Hall
781-555-3824
348-555-6453
28,992
Jose
Allen
256-555-8341
230-555-7520
28,993
Samuel
Moore
656-555-6372
333-555-1013