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
706,274
Joshua
Fisher
636-555-7432
518-555-1880
706,275
Hailey
Gomez
270-555-5510
527-555-1088
706,276
Sandra
Gomez
284-555-3418
853-555-1270
706,277
Willie
Baker
867-555-2636
215-555-1423
706,278
Hailey
Lee
815-555-4710
830-555-3382
706,279
Virginia
Jones
286-555-2012
847-555-4386
706,280
Willie
Cruz
518-555-1686
456-555-6301
706,281
Michael
Bailey
774-555-3651
220-555-4630