You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Manish <pr...@gmx.net> on 2004/11/03 09:25:09 UTC
Example of AbstractPagerTool
Is there any example available for "AbstractPagerTool" How can I set
googlish links there?
Despite keeping default size to 20, somehow my slip size is only 19!!!
TIA,
- Manish
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Example of AbstractPagerTool
Posted by Shinobu Kawai <sh...@gmail.com>.
> Anyways, this looks like a bug. Could you file an issue? (And
> perhaps a patch? B))
> http://issues.apache.org/bugzilla/enter_bug.cgi?product=Velocity
Found another bug.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32113
Best regards,
-- Shinobu Kawai
--
Shinobu Kawai <sh...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Example of AbstractPagerTool
Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Manish,
> I am not 100% sure, but I think this part of the code is te reason why
> slip-size of 20 returns only 19 items in the list.
> Me thinks it's incorrect, can someone explain the reason behined this?
>
> /* don't include current page in slip size calcs */
> int adjSlipSize = slipSize - 1;
I think it's rather here:
for (int i=slipStart; i < slipEnd; i++)
Since we want to include the slipEnd, it should read
for (int i=slipStart; i <= slipEnd; i++)
Anyways, this looks like a bug. Could you file an issue? (And
perhaps a patch? B))
http://issues.apache.org/bugzilla/enter_bug.cgi?product=Velocity
Best regards,
-- Shinobu Kawai
--
Shinobu Kawai <sh...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Example of AbstractPagerTool
Posted by Manish <pr...@gmx.net>.
Well,
I am not 100% sure, but I think this part of the code is te reason why
slip-size of 20 returns only 19 items in the list.
Me thinks it's incorrect, can someone explain the reason behined this?
/* don't include current page in slip size calcs */
int adjSlipSize = slipSize - 1;
Is " Matthew Van Horn" a regular here?
TIA,
- Manish
----- Original Message -----
From: "Manish"
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Wednesday, November 03, 2004 1:55 PM
Subject: Example of AbstractPagerTool
> Is there any example available for "AbstractPagerTool" How can I set
> googlish links there?
> Despite keeping default size to 20, somehow my slip size is only 19!!!
>
> TIA,
> - Manish
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org