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
1,467,138
Abby
Gonzalez
447-555-3133
854-555-7408
1,467,139
Timothy
Lee
251-555-1174
214-555-5185
1,467,140
Matthew
Murray
660-555-3567
513-555-2661
1,467,141
Larry
Lee
543-555-8656
417-555-6068
1,467,142
Sarah
Hall
347-555-7554
404-555-8163
1,467,143
Larry
Williams
237-555-5640
580-555-8608
1,467,144
Douglas
Gomez
513-555-5150
532-555-2451
1,467,145
Kathleen
Murray
718-555-3310
671-555-2134