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
115,164
Abner
Baker
453-555-1544
200-555-8571
115,165
Hailey
Smiith
270-555-7840
881-555-3522
115,166
Willie
Hall
386-555-8101
457-555-3360
115,167
Jacob
Johnson
316-555-3377
515-555-7776
115,168
Jack
Gonzalez
351-555-7757
557-555-6500
115,169
Jacob
Wilson
823-555-6480
652-555-5677
115,170
Joshua
Rose
612-555-5676
441-555-2452
115,171
Maria
Allen
711-555-8666
657-555-8142