1 Reply Latest reply on Mar 25, 2008 10:56 AM by Pete Muir

    pagination explanation needed

    Mike Kabir Newbie

      Can some one explain this to me... Where is the action in s:link.

      previousExists returns a boolean and does not perform any query.

      previousFirstResult and nextFirstResult perform some calculations. Where is the next and previous query performed.

      <s:link view="/search.xhtml" rendered="#{people.previousExists}" value="First Page">
          <f:param name="firstResult" value="0"/>
      <s:link view="/search.xhtml" rendered="#{people.previousExists}" value="Previous Page">
          <f:param name="firstResult" value="#{people.previousFirstResult}"/>
      <s:link view="/search.xhtml" rendered="#{people.nextExists}" value="Next Page">
          <f:param name="firstResult" value="#{people.nextFirstResult}"/>
      <s:link view="/search.xhtml" rendered="#{people.nextExists}" value="Last Page">
          <f:param name="firstResult" value="#{people.lastFirstResult}"/>