Hi,

                Display tag will load all the 1000 objects at a time
even though  page size is 10. If you want to load only 10 objects at a
time, you have to handle it manually.

 

Thanks

Venu.

 

From: emerson sanchez [mailto:es_sanch...@yahoo.com] 
Sent: Friday, March 05, 2010 2:54 PM
To: displaytag-user@lists.sourceforge.net
Subject: [displaytag-user] Displaytag usage question

 


Hi everyone,

 I just wanted to know if display tag loads the whole collection that
you passed to it? Say you have a collection that has 1000 objects and
you set the page size to 10. Does it load only 10 objects to the
session? Or does it load the whole collection but displayed only 10?

Here's a code to explain it further.

Java code:
  List<User> userList = new ArrayList<User>();
  for(int x:0;x<1000;x++){
    User user = new User();
    userList.add(user);
  }

JSP code:
<display:table name="userList" pagesize="10">
<display:column title="Id" property="id"/>
<display:column title="Name" property="name"/>
</display:table>

If display tag loads the whole collection on the session once the page
loads, Is there a way to just load only 10 objects on the session since
I set the page size to just 10 and still implement a pagination?

Thanks,
Emerson





Check me out! <http://www.myspace.com/emersonsanchez> 

 

________________________________

New Email names for you!
<http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http:/mail.
promotions.yahoo.com/newdomains/aa/> 
Get the Email name you've always wanted on the new @ymail and
@rocketmail.
Hurry before someone else does!


This e-mail message is being sent solely for use by the intended recipient(s) 
and may contain confidential information.  Any unauthorized review, use, 
disclosure or distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by phone or reply by e-mail, delete the 
original message and destroy all copies. Thank you.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to