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
192,232
Larry
Smiith
412-555-1611
860-555-8044
192,233
Jack
Moore
714-555-4265
382-555-7831
192,234
Hailey
Wilson
224-555-6151
220-555-6758
192,235
Maria
Smiith
670-555-4363
274-555-6203
192,236
Jack
Wilson
374-555-1220
253-555-4066
192,237
Sandra
Gomez
511-555-2416
286-555-5517
192,238
Jacob
Baker
517-555-7552
207-555-7165
192,239
Abner
Allen
735-555-4375
436-555-5137