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
49,275
Linda
Lee
726-555-2218
724-555-7374
49,276
Timothy
Davis
227-555-4046
706-555-6822
49,277
Samuel
Fisher
242-555-3730
747-555-4043
49,278
Abby
Allen
784-555-7532
822-555-4028
49,279
Sandra
Gonzalez
500-555-8182
442-555-7056
49,280
Sarah
Gonzalez
770-555-8524
250-555-6644
49,281
Timothy
Bailey
248-555-2464
817-555-2524
49,282
Douglas
Rose
828-555-4857
323-555-7550