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
753,580
Joshua
Smiith
504-555-7253
321-555-5026
753,581
Keith
Graham
314-555-1764
826-555-6221
753,582
Joshua
Wilson
854-555-4084
422-555-3750
753,583
Abner
Murray
281-555-8122
562-555-4000
753,584
Matthew
Gonzalez
648-555-3421
473-555-4350
753,585
Samuel
Graham
622-555-8210
462-555-2141
753,586
Pamela
Rose
563-555-8677
648-555-5702
753,587
Christopher
Gomez
814-555-2658
834-555-2762