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
4,961
Sarah
Baker
824-555-2821
274-555-8065
4,962
Nicholas
Cruz
724-555-8010
760-555-5044
4,963
Linda
Gomez
323-555-4676
525-555-4707
4,964
Christopher
Gonzalez
413-555-8465
813-555-5045
4,965
Matthew
Gomez
257-555-4337
877-555-6046
4,966
Pamela
Cruz
618-555-3400
317-555-6173
4,967
Samantha
Williams
845-555-5423
725-555-1578
4,968
Larry
Smiith
745-555-4152
208-555-2073