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
13,548
Sandra
Jones
285-555-4022
816-555-5842
13,549
Maria
Fisher
286-555-4866
267-555-3280
13,550
Michael
Clark
816-555-2071
528-555-1812
13,551
Sandra
Baker
556-555-3002
268-555-4752
13,552
Jose
Nelson
343-555-6347
565-555-8348
13,553
Brianna
Lee
456-555-3827
604-555-6247
13,554
Keith
Wilson
877-555-7314
522-555-4355
13,555
Michael
Williams
502-555-3712
708-555-4377