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
3,422,556
Sandra
Lee
768-555-4540
674-555-2485
3,422,557
Christopher
Lee
574-555-5337
317-555-4132
3,422,558
Keith
Wilson
785-555-7325
351-555-6330
3,422,559
Gerald
Rose
544-555-3554
705-555-5058
3,422,560
Brianna
Allen
543-555-3261
307-555-6177
3,422,561
Virginia
Lee
670-555-6740
236-555-6515
3,422,562
Jacob
Moore
580-555-4612
346-555-2301
3,422,563
Sandra
Brown
458-555-4344
507-555-3577