You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sol myr <so...@yahoo.com> on 2008/05/18 10:40:31 UTC
[Struts2] Table pagination (paging)?
Hi,
What's the Strut2 recommendation for Table Pagination (AKA Paging)?
We're showing a large table (say, 500 records) and need to break it down to 25 pages (20 records per page).
So we need a widget where users can select a page:
page: << 1 2 3 4 5 .. 24 25 >>
And then a table showing this page - e.g. page 2 is records 26-50:
| record No. | Date | price
------------------------------------
26. ....
27. ...
... ...
50. ...
Does struts2 have tags (or design recommendations) for this, either simple or ajax-based?
Note we know how to page on the Model side (oracle ROWNUM), we're just not sure how to integrate it with *Struts* UI.
Thanks very much,
Sollie.
Re: [Struts2] Table pagination (paging)?
Posted by Oleg Mikheev <mi...@bigfoot.com>.
sol myr wrote:
> What's the Strut2 recommendation for Table Pagination (AKA Paging)?
> We're showing a large table (say, 500 records) and need to break it down to 25 pages (20 records per page).
http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [Struts2] Table pagination (paging)?
Posted by Felipe Lorenz <fe...@gmail.com>.
Yes, displaytag is simple and easy to use....
On Sun, May 18, 2008 at 6:40 AM, David Canos <da...@gmail.com> wrote:
> I have never used it, but I have heard good opinions about "display tag"
> project.
> http://displaytag.sourceforge.net/
>
> Take a look at it.
>
> 2008/5/18 sol myr <so...@yahoo.com>:
>
> > Hi,
> >
> > What's the Strut2 recommendation for Table Pagination (AKA Paging)?
> > We're showing a large table (say, 500 records) and need to break it down
> > to 25 pages (20 records per page).
> >
> > So we need a widget where users can select a page:
> > page: << 1 2 3 4 5 .. 24 25 >>
> >
> > And then a table showing this page - e.g. page 2 is records 26-50:
> > | record No. | Date | price
> > ------------------------------------
> > 26. ....
> > 27. ...
> > ... ...
> > 50. ...
> >
> > Does struts2 have tags (or design recommendations) for this, either
> simple
> > or ajax-based?
> > Note we know how to page on the Model side (oracle ROWNUM), we're just
> not
> > sure how to integrate it with *Struts* UI.
> >
> > Thanks very much,
> > Sollie.
> >
> >
>
Re: [Struts2] Table pagination (paging)?
Posted by David Canos <da...@gmail.com>.
I have never used it, but I have heard good opinions about "display tag"
project.
http://displaytag.sourceforge.net/
Take a look at it.
2008/5/18 sol myr <so...@yahoo.com>:
> Hi,
>
> What's the Strut2 recommendation for Table Pagination (AKA Paging)?
> We're showing a large table (say, 500 records) and need to break it down
> to 25 pages (20 records per page).
>
> So we need a widget where users can select a page:
> page: << 1 2 3 4 5 .. 24 25 >>
>
> And then a table showing this page - e.g. page 2 is records 26-50:
> | record No. | Date | price
> ------------------------------------
> 26. ....
> 27. ...
> ... ...
> 50. ...
>
> Does struts2 have tags (or design recommendations) for this, either simple
> or ajax-based?
> Note we know how to page on the Model side (oracle ROWNUM), we're just not
> sure how to integrate it with *Struts* UI.
>
> Thanks very much,
> Sollie.
>
>