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
762,942
Emily
Cruz
544-555-7233
688-555-3174
762,943
Michael
Clark
662-555-2527
784-555-4537
762,944
Willie
Gomez
207-555-4274
550-555-7048
762,945
Hailey
Fisher
701-555-3057
226-555-8848
762,946
Michael
Brown
465-555-2677
255-555-1457
762,947
Nicholas
Fisher
505-555-1425
448-555-1086
762,948
Jack
Johnson
331-555-1676
538-555-1383
762,949
Willie
Wilson
580-555-3762
453-555-8616