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
942,525
Michael
Cruz
738-555-5382
745-555-2723
942,526
Willie
Gomez
654-555-5766
237-555-1284
942,527
Samuel
Black
428-555-2261
268-555-4663
942,528
Nicholas
Fisher
273-555-8463
277-555-1271
942,529
Keith
Allen
661-555-3343
257-555-4783
942,530
Larry
Brown
780-555-3347
473-555-7174
942,531
Willie
Wilson
450-555-1461
615-555-3277
942,532
Timothy
Lee
420-555-1627
771-555-7774