aspose file tools*
The moose likes JSF and the fly likes Pagination in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Pagination in JSF" Watch "Pagination in JSF" New topic
Author

Pagination in JSF

george john
Greenhorn

Joined: Jan 31, 2008
Posts: 7
Can some one tell me how to do pagination in JSF.Are ther in built components for doing pagination in JSF. If possible provide me with some sample codes too. Its really urgent. Please help me out. Thanks in advance!!!
Darryl Nortje
Ranch Hand

Joined: Jun 11, 2002
Posts: 140
Howzit George,

I stand to be corrected, but I think dataTable has pagination built into it, using the rows attribute. Maybe you can look at how that works. Let me know if it helps.
Darryl Nortje
Ranch Hand

Joined: Jun 11, 2002
Posts: 140
looks like it can be used hand in hand with tomahawk's dataScoller.
Arun Sudharsanam
Greenhorn

Joined: May 29, 2008
Posts: 21
you can also try trinidad tags for this:
<tr:table rows="3">
<tr:column>
<trutputText value="#{Bean.name}"
</tr:column>
</tr:table>

This will make the table display only 3 values at a time and the remaining values will be displayed only after clicking the 'next' link which is defaultly displayed.


A S
Thiru Navukkarasan
Greenhorn

Joined: Jun 09, 2008
Posts: 5
Hi,

If you use database by Hibernate then use following methods for pagination

criteria=criteria.setFirstResult(first);
setMaxResults(max);

Hibernate supports pagination by above methods .

--Thiru N
Kranthi Kondapaka
Ranch Hand

Joined: Sep 17, 2007
Posts: 31
Hi,
i think we can go for rich:datascroller for pagination in jsf.
here is the url for reference
http://livedemo.exadel.com/richfaces-demo/richfaces/actionparam.jsf?c=actionparam
yuvaraaj mohan
Greenhorn

Joined: Aug 17, 2009
Posts: 13
hi all,
Is it possible to create customised messages near the drop down?. i mean instead of 'Next 1' and 'Previous 1', we need some other message to be shown there.

TIA,
Yuvaraj.
suresh dasari
Ranch Hand

Joined: Oct 05, 2009
Posts: 121

Darryl,

you can use extended datatabe provided by ibm-jsf to achieve pagination.
there are many combinations, you can use pagination with scrollbar, only scrollbar, only pagenation etc.
its a hx component looks like


Sun Certified Java Programmer with 93 percent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pagination in JSF