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,466,611
Larry
Murray
555-555-4442
517-555-6016
1,466,612
Kathleen
Clark
732-555-4601
500-555-8873
1,466,613
Maria
Allen
834-555-6462
547-555-1760
1,466,614
Nicholas
Smiith
470-555-2041
475-555-5351
1,466,615
Joshua
Lee
326-555-7008
527-555-5347
1,466,616
Joshua
Lee
258-555-2458
338-555-7173
1,466,617
Emily
Wilson
547-555-6715
362-555-1367
1,466,618
Nicholas
Hall
541-555-3400
383-555-4443