A good introduction (or component) for paging with JSF
Can anybody suggest a good tutorial for breaking a large query result into several pages? What I need is an introduction to basics, but all the material I find in the net is about some evolved technical detail. I get a dataTable hooked to the query, but steps after are a mystery.
After struggling with installation of MyFaces and Tomahawk for several days now, a solution without them is preferred.
[413 byte] By [
TNeoa] at [2007-10-2 18:55:14]

iceFaces has a nice pager component. (ice:dataPaginator)
http://www.icesoft.com/developer_guides/icefaces/component_overview/ICEfacesCompSuite.html
if you want to narrow down to jsf ri, corejsf has a sample custom pager component. (chapter 12)
u can read the book for free at oreilly safari.
(with 14 days free trial)
whats your problem with myFaces?
> iceFaces has a nice pager component.
> (ice:dataPaginator)
Thanks. I must take a look at it. Especially when there is a free commuity edition. But can't you use standard JSF sfuff?
> whats your problem with myFaces?
Getting Tomahawk to work is the problem, not myFaces. Once you get past one exception, there is already a new one waiting...
Message was edited by:
TNeo
TNeoa at 2007-7-13 20:33:11 >

>can't you use standard JSF sfuff?
sure u can. but there is no out of the box solution for paging.
as i told you, corejsf describes a way to handle it with jsf ri.
>Getting Tomahawk to work is the problem, not myFaces. Once you get past one exception, there is already a new one waiting...
most likely you got some jars in your classpath tomahawk doesnt like
post some stacktrace if you want
There's a discussion of a pageable data model on the MyFaces wiki at http://wiki.apache.org/myfaces/WorkingWithLargeTables. It seems to work fine for vanilla paging with Tomahawk and ADF, though sorting for ADF requires additional work and, of course, a database call to match.