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.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/11/06, srusda <[EMAIL PROTECTED]> wrote:

Hi nathan,

could you explain to me, how would be if i have multiple page that need
search & paging. it seems the class that extend AbstractPagerTool can be
used generic way. could you give me some example how to use it ??

thanks in advance.

regards,
srusda


Nathan Bubna wrote:
>
> 
http://jakarta.apache.org/velocity/tools/javadoc/org/apache/velocity/tools/view/tools/AbstractPagerTool.html
>
> On 10/8/06, Erica Ren <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> this is my first time using the mail list...I have a problem with my
>> application that I was hoping someone here may know the answer. I have
>> Spring 1.2, velocity 1.4, velocity-tool 1.2 and
>> velocity-generic-tool.1.2.
>> I'm retrieving x numbers of records from the database, and only want to
>> display 10 on each page. Each page should have buttons linked to previous
>> or
>> next page. I was thinking of using the listTool but I'm having trouble
>> configuring it. Does anyone know if this can be done using listTool at
>> all,
>> or is there another way of doing it using velocity?
>>
>> Any comments or advice would be greatly appreciated. Thanks in advance.
>>
>> Erica
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/How-to-list-pages-with-Velocity-and-Spring-tf2411176.html#a6770115
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to