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
30,690
Brianna
Gomez
282-555-1814
535-555-1657
30,691
Samantha
Clark
627-555-1805
437-555-4562
30,692
Joshua
Lee
251-555-4522
386-555-7340
30,693
Debra
Hall
375-555-8536
874-555-8781
30,694
Linda
Bailey
313-555-4145
566-555-6502
30,695
Jacob
Smiith
865-555-4406
572-555-8332
30,696
Willie
Johnson
424-555-7816
615-555-7410
30,697
Timothy
Graham
355-555-4480
843-555-5335