You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Friedman <hu...@ix.netcom.com> on 2006/10/30 18:28:26 UTC

RE: Paging

Actually, DisplayTag does support partial sets.  If you handle the loading
of the data yourself you can tell displaytag it is a partial list (starting
at 20 of 100 for example).  You will probably just have to sort it yourself
via your database call.  And of course you'll need to pay attention to the
request parameters to find out which subset to load next.  See the last
section of this page for partial paging and external sorting at:
http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html

Regards,
David

-----Original Message-----
From: Juan Espinosa [mailto:pcexplorer@adinet.com.uy]
Sent: Monday, October 30, 2006 1:07 PM
To: 'Struts Users Mailing List'
Subject: Paging


Hi im testing the tag library "display tag" (tag for paging, sorting etc),
as many know, you must load the entire data (a list with objects) in the
session scope to make this tag use of this data. The tag library doesnt
support the load of data on demand. So im looking another tag or library to
make paging.

In reading the documentation of the value list tag library but is to complex
i cant found a easy example.

Anyone know a good paging library ????

Regards,

    Juan


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


RE: Paging

Posted by David Friedman <hu...@ix.netcom.com>.
Set size="100" partialList="true" pagesize="20" in your JSP's display:table
tag.  Then use the long line listed in the tutorial's next window to figure
out which set of data (1-20, 20-40, etc.) to load from your database into
your "testList" list before invoking your JSP to display the information.
As for an example, I'd suggest looking at the source code or the CVS server
(it was unavailable to me a moment ago) just in case some new example are in
the nightly build waiting for the next official release.

Regards,
David

-----Original Message-----
From: Juan Espinosa [mailto:pcexplorer@adinet.com.uy]
Sent: Monday, October 30, 2006 1:53 PM
To: 'Struts Users Mailing List'
Subject: RE: Paging


I read the last part of the tutorial and its hard to understand, do
you have an example ?? I want to use where that if i want to show 100
object, i call an action that returns 20, then when i press next, i
go again to the action and i load the next 20...

Thanks,

	Juan

-----Mensaje original-----
De: David Friedman [mailto:humble@ix.netcom.com]
Enviado el: Lunes, 30 de Octubre de 2006 02:28 p.m.
Para: Struts Users Mailing List
Asunto: RE: Paging

Actually, DisplayTag does support partial sets.  If you handle the loading
of the data yourself you can tell displaytag it is a partial list (starting
at 20 of 100 for example).  You will probably just have to sort it yourself
via your database call.  And of course you'll need to pay attention to the
request parameters to find out which subset to load next.  See the last
section of this page for partial paging and external sorting at:
http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html

Regards,
David

-----Original Message-----
From: Juan Espinosa [mailto:pcexplorer@adinet.com.uy]
Sent: Monday, October 30, 2006 1:07 PM
To: 'Struts Users Mailing List'
Subject: Paging


Hi im testing the tag library "display tag" (tag for paging, sorting etc),
as many know, you must load the entire data (a list with objects) in the
session scope to make this tag use of this data. The tag library doesnt
support the load of data on demand. So im looking another tag or library to
make paging.

In reading the documentation of the value list tag library but is to complex
i cant found a easy example.

Anyone know a good paging library ????

Regards,

    Juan


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


RE: Paging

Posted by Juan Espinosa <pc...@adinet.com.uy>.
I read the last part of the tutorial and its hard to understand, do you have
an example ??
I want to use where that if i want to show 100 object, i call an action that
returns 20, then
when i press next, i go again to the action and i load the next 20...

Thanks,

	Juan 

-----Mensaje original-----
De: David Friedman [mailto:humble@ix.netcom.com] 
Enviado el: Lunes, 30 de Octubre de 2006 02:28 p.m.
Para: Struts Users Mailing List
Asunto: RE: Paging

Actually, DisplayTag does support partial sets.  If you handle the loading
of the data yourself you can tell displaytag it is a partial list (starting
at 20 of 100 for example).  You will probably just have to sort it yourself
via your database call.  And of course you'll need to pay attention to the
request parameters to find out which subset to load next.  See the last
section of this page for partial paging and external sorting at:
http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html

Regards,
David

-----Original Message-----
From: Juan Espinosa [mailto:pcexplorer@adinet.com.uy]
Sent: Monday, October 30, 2006 1:07 PM
To: 'Struts Users Mailing List'
Subject: Paging


Hi im testing the tag library "display tag" (tag for paging, sorting etc),
as many know, you must load the entire data (a list with objects) in the
session scope to make this tag use of this data. The tag library doesnt
support the load of data on demand. So im looking another tag or library to
make paging.

In reading the documentation of the value list tag library but is to complex
i cant found a easy example.

Anyone know a good paging library ????

Regards,

    Juan


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



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 27/10/2006



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