Yaakov Chaikin wrote:

How would the displayTag know to show only records 11-20 when the user
clicks "page 2" link? Does it assume that all 100 records would get
stuck into the request again and it would paginate it, giving you
"page 2" based on what it assumes was supposed to be in page 1?


Yes. The list would need to be in the request again. The pagination would go to the n-th page (where n is whatever is specified in the pagination param). That page would display items starting at (n - 1) * p + 1 and going up to n * p (where p is page size).

Is pagination something you can configure somewhere, i.e., how many
items to show per page? Can it be configure for how many subItems to
show per shown item? Can it be configured to paginate based on lines
on the screen, not items shown?


There is a property called paging.banner.group_size that you may be able to put in your display.properties bundle, but I'm not sure if that's it (you'd think it would be page_size, not group_size). It's defined in the default TableTag.properties as 8, so...

Anyways, the easy way to change the page size is to set the pagesize attribute:

<display:table pagesize="20">
   ...
</display:table>

For the subitems per item, I'm guessing you're talking about grouping? I don't really know. The question about pagination based on lines per screen, not items shown.... No, I don't think you can. I haven't done that much, though, so I could be wrong.

--
Rick Herrick
[EMAIL PROTECTED]

I haven't got time for inner peace.

Get out of control, but appear under control. It's not bad to alarm other 
people, though--it's good for them.--Hunter S. Thompson




------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to