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
5,999,275
Jacob
Hall
430-555-1467
844-555-7588
5,999,276
Willie
Gonzalez
636-555-1553
884-555-4036
5,999,277
Sarah
Donahue
714-555-6880
414-555-2211
5,999,278
Jose
Smiith
763-555-8542
271-555-1382
5,999,279
Linda
Wilson
713-555-2678
308-555-6845
5,999,280
Willie
Jones
467-555-8760
220-555-2844
5,999,281
Douglas
Clark
208-555-4304
880-555-4288
5,999,282
Jose
Davis
252-555-5077
511-555-5118