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
869
Kathleen
Gonzalez
840-555-8186
205-555-7434
870
Virginia
Ortiz
352-555-3127
527-555-6622
871
Samuel
Wilson
388-555-3756
280-555-8532
872
Jacob
Jones
366-555-3030
840-555-8778
873
Gerald
Gonzalez
576-555-7715
314-555-6160
874
Nicholas
Gonzalez
606-555-4511
711-555-6527
875
Jacob
Johnson
840-555-8344
617-555-1350
876
Abner
Allen
504-555-2060
470-555-5565