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,519
Pamela
Wilson
353-555-6452
330-555-5172
5,520
Virginia
Graham
626-555-1721
615-555-3745
5,521
Pamela
Gonzalez
258-555-5868
400-555-2271
5,522
Willie
Ortiz
737-555-1458
782-555-2084
5,523
Kathleen
Murray
674-555-1848
666-555-4788
5,524
Emily
Wilson
412-555-7014
866-555-1216
5,525
Brianna
Bailey
562-555-8684
802-555-2818
5,526
Jacob
Smiith
420-555-5385
250-555-5685