Formicary: pagertags

Overview

Pager tags paginate over a given collection.


Tag Summary

wwPage Paginates over a collection. Exposes the current page's subcollection as a variable. This tag also exposes the current page number (an Integer) as "currentPage" and the number of items per page is "perPage".
wwPagelist provides iteration over the number of pages in the pagination

Tag Reference


wwPage

Paginates over a collection. Exposes the current page's subcollection as a variable. This tag also exposes the current page number (an Integer) as "currentPage" and the number of items per page is "perPage".
Tag Classcom.formicary.taglib.pager.WWPagerTag
Tag Bodyjsp
Script VariableYes
Attributes
NameRequiredRuntime Expression Evaluation
collectiontruetrue
The collection to be paginated over.
perPagefalse
The number of items to display per page. If none is specified, it looks in the servlet context for the attribute PAGER_PER_PAGE, set by PortalConfig, and if this isn't found, defaults to 20.
groupSizefalse
The number of items to appear in a page grouping. If a large number of pages exist, then this determines the number shown at the start and end of the page list, as well as either side of the current page. The default is 5.
idtrue
The variable name for the exposed subcollection on a given page.
indexedObjectfalsetrue
Optional attribute for returning to the specific page in the collection that contains the indexed object. It is overriden by a passed page "p", and it is ignored if the indexed object is null or not a member of the paginated collection.
actionfalsefalse
Optional action alias to use for generating the next and previous urls instead of using the current request url. Use the desired action alias without .action on the end and the prev, next, and pagelist urls will return to the given action and not reproduce the current request parameters.
nextUrlfalse
Optional name for the String which represents the URL for the next page in the collection, including all the previously passed parameters. If no name is specified, the default is "next".
prevUrlfalse
Optional name for the String which represents the URL for the previous page in the collection, including all the previously passed parameters. If no name is specified, the default is "prev".
pagerNamefalse
Optional name for the pager to prevent it from conflicting with other dynamically included pagers.
namedAnchorfalse
Optional name for the String which represents the name of a local anchor in the page in which the pager tag appears.
keepParametersfalse
Optional boolean denoting whether the parameters recieved from the previous request should be appended to the prev/pages/next url links.

wwPagelist

provides iteration over the number of pages in the pagination
Tag Classcom.formicary.taglib.pager.WWPageListTag
Tag Bodyjsp
Script VariableYes
Attributes
NameRequiredRuntime Expression Evaluation
idfalse
pageUrlfalse