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
7,944,991
Nicholas
Gomez
751-555-1462
412-555-1624
7,944,992
Virginia
Lee
674-555-2365
840-555-4708
7,944,993
Willie
Bailey
258-555-5207
801-555-5032
7,944,994
Samantha
Cruz
503-555-1385
240-555-2174
7,944,995
Larry
Hall
884-555-5127
772-555-1378
7,944,996
Linda
Fisher
661-555-6267
345-555-7157
7,944,997
Jacob
Rose
626-555-5351
222-555-4038
7,944,998
Hailey
Donahue
841-555-1321
437-555-7574