Search code examples
xpagesxpages-extlib

XPages Pager with Last and lots of pages


I am looking at a way to bypass a bug in the standard pager with views that contain a large numbers of documents. When I use the code below, the "Last" won't show up:

<xp:this.facets>
    <xp:pager layout="First Previous Group Next Last" xp:key="header"
        id="pager1" for="myView" partialRefresh="true">
</xp:pager>

Anyone got around this, or has an alternate solution?


Solution

  • Set the alwaysCalculateLast property on the xp:pager to true to calculate the last document in the view. There can be a performance hit when this is set to true, though.