public class PaginationFilter extends Object implements Filter
Filter implementation that paginates an Iterable. If the
object to filter is not an Iterable, it is returned directly.
Otherwise it will be turned into a List unless it already is one. The
filter understands the parameters “pageSize” (defaulting to 25), “page” (the
current page), and “pagination” (the name under which to store a
Pagination object in the TemplateContext, defaulting to
“pagination”).| Constructor and Description |
|---|
PaginationFilter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Copyright © 2026. All rights reserved.