Hi,
It depends on your implementation. I f you make it (the tag) to go back to
the database to fetch the next page, or you can give it the whole list,
cache it on the session and when it pages, you can give the cached list.
It's really up to you.
Offcourse there are pros and cons for each approach. If you have a list of
over 10.000 objects, it can be a little difficult to store all these objects
on the session especially if the user only sees 10 or 100 records per page.
If your list usually has a maximum of 100 - 500 objects, there will be no
problem in my opinion to pass the whole list to the tag and it will manage
it very nice.
Cheers,
Narcis
On Mon, Jun 1, 2009 at 9:44 PM, David Boyd <[email protected]>wrote:
>
>
> -------- Original Message --------
> Subject: Limitation of the number of objects that can be placed into
> user session
> Date: Mon, 01 Jun 2009 12:00:02 -0400
> From: David Boyd <[email protected]>
> Reply-To: [email protected]
> To: [email protected]
>
>
>
> I am interested in using this tag lib to help display a result set from
> the database.
>
> The list of objects will be detached from the database.
>
> Is there a limit to the number of objects that get placed into the session?
>
> When using this tag - does it come back to the server to get the next
> page of data or does it pull the data from the list placed in the session?
>
> What are the best practices for the usage of this tag.
>
> What I want to avoid is going back to the database to fetch the next
> page of data etc. I would like to make one call, create the list of
> objects and make those available to the presentation layer. I am
> assuming that the list of objects is placed into the user session and
> that the tag library pulls from there during its paging and filter or
> does it go back to the server to refetch the list of objects?
>
> Thanks
>
>
>
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user