Facing issues with PagerTool

View: New views
3 Messages — Rating Filter:   Alert me  

Facing issues with PagerTool

by Maruthi srinivas Marpaka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

I  need to implement pagination in my current project, in which we are using Velocity and Spring.

 

After a bit googling, I found  Nathan's posts, and tried to use PagerTool (

http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/view/PagerTool.html

).

The initial display is working fine but the links for 'Next' /2nd Page are not correct (these are not interpreted properly).

The links are are pointing to "$pagelink.param('index',$!index)" .

I observed that this pagelink is set from $link and I can't understand where the $link is coming from?

Am I missing anything?

We are using velocity-tools-view-2.0-beta4.jar/ velocity 1.5/JDK1.6

 

I appreciate all your help.

 

Thanks

MM

 

 

 

_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009

Re: Facing issues with PagerTool

by Nathan Bubna :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

$link is an instance of the LinkTool.  You'll need to have that in
your toolbox for the example on that page to work.  Also, if you try
out the showcase.war application that comes with VelocityTools you'll
get some live examples of how to setup and use these tools.  Those
might be more useful.

Also, does Spring MVC support Tools 2.0 now?  Last i checked, they
didn't.  If you're not sure and still having trouble, consider
downgrading to Tools 1.4.

On Thu, May 14, 2009 at 9:57 PM, Maruthi srinivas Marpaka
<mmarpaka@...> wrote:

>
> Hi,
>
> I  need to implement pagination in my current project, in which we are using Velocity and Spring.
>
>
>
> After a bit googling, I found  Nathan's posts, and tried to use PagerTool (
>
> http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/view/PagerTool.html
>
> ).
>
> The initial display is working fine but the links for 'Next' /2nd Page are not correct (these are not interpreted properly).
>
> The links are are pointing to "$pagelink.param('index',$!index)" .
>
> I observed that this pagelink is set from $link and I can't understand where the $link is coming from?
>
> Am I missing anything?
>
> We are using velocity-tools-view-2.0-beta4.jar/ velocity 1.5/JDK1.6
>
>
>
> I appreciate all your help.
>
>
>
> Thanks
>
> MM
>
>
>
>
>
>
>
> _________________________________________________________________
> Windows Live™: Keep your life in sync.
> http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


RE: Facing issues with PagerTool

by Maruthi srinivas Marpaka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks Nathan,

Sorry for delay in replying.

 

Showcase.war helped me to get what I need.

 

Appreciate your help.

 

Regards

Maruthi
 

> Date: Fri, 15 May 2009 09:26:31 -0700
> Subject: Re: Facing issues with PagerTool
> From: nbubna@...
> To: user@...
>
> $link is an instance of the LinkTool. You'll need to have that in
> your toolbox for the example on that page to work. Also, if you try
> out the showcase.war application that comes with VelocityTools you'll
> get some live examples of how to setup and use these tools. Those
> might be more useful.
>
> Also, does Spring MVC support Tools 2.0 now? Last i checked, they
> didn't. If you're not sure and still having trouble, consider
> downgrading to Tools 1.4.
>
> On Thu, May 14, 2009 at 9:57 PM, Maruthi srinivas Marpaka
> <mmarpaka@...> wrote:
> >
> > Hi,
> >
> > I  need to implement pagination in my current project, in which we are using Velocity and Spring.
> >
> >
> >
> > After a bit googling, I found  Nathan's posts, and tried to use PagerTool (
> >
> > http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/view/PagerTool.html
> >
> > ).
> >
> > The initial display is working fine but the links for 'Next' /2nd Page are not correct (these are not interpreted properly).
> >
> > The links are are pointing to "$pagelink.param('index',$!index)" .
> >
> > I observed that this pagelink is set from $link and I can't understand where the $link is coming from?
> >
> > Am I missing anything?
> >
> > We are using velocity-tools-view-2.0-beta4.jar/ velocity 1.5/JDK1.6
> >
> >
> >
> > I appreciate all your help.
> >
> >
> >
> > Thanks
> >
> > MM
> >
> >
> >
> >
> >
> >
> >
> > _________________________________________________________________
> > Windows Live™: Keep your life in sync.
> > http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>

_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290