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
435
Christopher
Allen
375-555-5147
461-555-5448
436
Jacob
Gomez
874-555-1275
756-555-5186
437
Emily
Lee
624-555-5520
474-555-3364
438
Debra
Allen
204-555-4523
782-555-5173
439
Nicholas
Moore
808-555-7435
316-555-5686
440
Maria
Fisher
742-555-8173
813-555-2053
441
Gerald
Smiith
773-555-1574
227-555-3847
442
Kathleen
Williams
803-555-4147
438-555-2188