Taglib documentation for tag mak:pagination#
Description#
Provides pagination of the results in an enclosing <mak:list>. The tag provides links to the first, previous, next and last item in the result set, and the page number currently displayed. To achieve this, pagination makes use of the information provided by the enclosing <mak:list>, i.e. the offset and limit, and automatically computes the total of rows that would be returned by the list, if no limit was specified.
.
Attributes#
Name | Required | Runtime expression | Description | Comments |
---|---|---|---|---|
action | false | yes | The target page to go to when clicking on a pagination link.
.![]() |
. ![]() |
showPageTitle | false | yes | Whether or not to show the 'Showing Item x to y out of z (Page a out of b)' header.
.![]() |
Defaults to true
.![]() |
paginationLinkTitle | false | yes | Whether or not to display title="..." elements on the pagination links (i.e. 'first page', 'previous page', 'next page', 'last page'.
.![]() |
Defaults to true
.![]() |
paginationLinkTitleText | false | yes | The test to use for the pagination links. The default is 'page', creating e.g. 'previous page'. The text given in the attribute will be appended to the prefixes 'first', 'previous', 'next', 'last'.
.![]() |
Defaults to true
.![]() |
itemName | false | yes | The name of the items displayed, to be used in the text "Showing 'itemName' x out of y (Page z)".
.![]() |
. ![]() |
forList | false | yes | Indicates for which mak:list tag this pagination should be generated.
.![]() |
Rtexpr.
.![]() |
styleClass | false | true | Generic HTML tag attribute
.![]() |
results in class="..."
.![]() |
See also#
Examples#
<mak:list from="company.Employee e" offset="$offset" limit="$limit" defaultLimit="25" orderBy="e.name, e.surname"> <mak:pagination action="employeeList.jsp" itemName="employees" /> <mak:value expr="e.name"/> <mak:value expr="e.surname"/>, born on <mak:value expr="e.birthdate" /> <mak:pagination action="employeeList.jsp" itemName="employees" /> </mak:list>
