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,628
Jacob
Brown
353-555-2005
648-555-8331
3,629
Maria
Williams
218-555-5688
673-555-1231
3,630
Samantha
Gonzalez
302-555-2632
521-555-2160
3,631
Maria
Murray
440-555-1321
760-555-7282
3,632
Linda
Donahue
676-555-1843
467-555-1874
3,633
Brianna
Clark
345-555-6431
701-555-3606
3,634
Willie
Smiith
326-555-4766
561-555-8668
3,635
Maria
Donahue
323-555-5332
730-555-5176