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
5,562,362
Christopher
Gomez
836-555-3830
602-555-6622
5,562,363
Sarah
Wilson
784-555-8176
612-555-7516
5,562,364
Maria
Baker
314-555-2078
758-555-4733
5,562,365
Gerald
Wilson
757-555-7568
414-555-6865
5,562,366
Nicholas
Murray
323-555-5700
655-555-5337
5,562,367
Pamela
Ortiz
366-555-2265
552-555-8845
5,562,368
Jacob
Gomez
341-555-2507
737-555-2763
5,562,369
Gerald
Ortiz
540-555-5411
862-555-3628