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
719,449
Jacob
Cruz
666-555-6014
643-555-6543
719,450
Kathleen
Rose
324-555-8682
377-555-3375
719,451
Emily
Allen
867-555-1563
803-555-3525
719,452
Keith
Hall
302-555-8768
867-555-4576
719,453
Samantha
Jones
250-555-6843
477-555-4774
719,454
Douglas
Jones
641-555-2074
578-555-7680
719,455
Brianna
Davis
870-555-7861
507-555-3244
719,456
Maria
Black
300-555-5873
517-555-4521