velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: AbstractPagerTool
Date Tue, 10 Oct 2006 16:09:04 GMT
I've laid out examples in the javadoc:
http://jakarta.apache.org/velocity/tools/javadoc/org/apache/velocity/tools/view/tools/AbstractPagerTool.html

The process is:

1) Create a MyPagerTool class that extends AbstractPagerTool and
implements the setup() method (see javadoc for an example)
2) Add the MyPagerTool and LinkTool
(http://jakarta.apache.org/velocity/tools/view/LinkTool.html) to your
toolbox.xml as request-scoped tools
3) Use the tools as demonstrated in the example "pager.vm" template
from the javadoc.  In fact, i believe you can use that exact template
without problems.

On 10/10/06, Erica Ren <erica.ren@gmail.com> wrote:
> Sorry this is a reply to the following thread, because my mailbox rejects
> velocity mailer for some reason and I couldn't figure out how to reply to
> the thread...
>
> http://mail-archives.apache.org/mod_mbox/jakarta-velocity-user/200610.mbox/browser
>
> I was wondering if anyone can provide an example of using AbstractPagerTool.
> I am getting a list of objects from the database and would like to display
> 10 records per page. Thank you.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message