GitHub

User guide

Lists and tables

Repeat markup for each item in a list, page through data.

How-to guides

Directions for a specific goal.

  • Repeat markup with RepeatingView Render a tag once for every child you add in code, for menus, button bars and other short lists you build in the constructor.
  • Show a list with ListView Render markup for every element of a java.util.List, keep form input in the rows, and avoid the pitfalls of index-based items.
  • Control how items are reused with RefreshingView Build repeater items from models you supply, and keep an item's components across renders as long as its model stays in the list.
  • Page through data Load one page of rows at a time with an IDataProvider, show them in a DataView or DataTable, and let users move between pages.

Reference

The classes, tags and settings, described.

  • Repeaters The repeaters of wicket-core and wicket-extensions compared, what each needs and when it re-creates items, plus data providers, navigators and table parts.