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
3,786,124
Emily
Donahue
705-555-1355
788-555-2028
3,786,125
Gerald
Black
627-555-4176
252-555-1737
3,786,126
Debra
Williams
612-555-2256
864-555-2725
3,786,127
Sandra
Murray
870-555-5641
354-555-7261
3,786,128
Emily
Gonzalez
282-555-1012
377-555-2822
3,786,129
Abner
Rose
768-555-3061
816-555-7283
3,786,130
Maria
Fisher
488-555-3331
867-555-3236
3,786,131
Debra
Fisher
270-555-3664
405-555-2075