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
14,230
Michael
Wilson
284-555-4732
811-555-1158
14,231
Jose
Brown
208-555-5221
354-555-4607
14,232
Debra
Rose
737-555-6725
387-555-1122
14,233
Samuel
Gomez
511-555-6348
244-555-5561
14,234
Samuel
Brown
805-555-6227
238-555-6128
14,235
Michael
Nelson
266-555-8511
425-555-1364
14,236
Gerald
Murray
287-555-7752
663-555-2688
14,237
Larry
Hall
757-555-4645
255-555-5242