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
67,984
Sandra
Davis
776-555-7871
675-555-8433
67,985
Kathleen
Allen
814-555-8072
287-555-1602
67,986
Samantha
Jones
203-555-5213
630-555-3063
67,987
Jacob
Ortiz
626-555-2546
453-555-6781
67,988
Larry
Rose
366-555-8253
678-555-1410
67,989
Pamela
Cruz
572-555-8313
206-555-3844
67,990
Willie
Lee
311-555-1658
866-555-7471
67,991
Brianna
Allen
322-555-8757
705-555-4113