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
21,298
Jose
Baker
646-555-7321
788-555-8524
21,299
Sarah
Wilson
573-555-7525
724-555-5084
21,300
Larry
Wilson
428-555-3100
872-555-6314
21,301
Willie
Johnson
614-555-1442
607-555-2431
21,302
Maria
Gomez
553-555-7757
605-555-5613
21,303
Linda
Baker
807-555-3671
587-555-3167
21,304
Keith
Gonzalez
286-555-7664
746-555-7663
21,305
Christopher
Clark
453-555-5752
660-555-8146