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]
# 1

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?

Dill0ra at 2007-7-13 20:33:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

> 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 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

>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

Dill0ra at 2007-7-13 20:33:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Try the free components of this sitewww.jenia.orgI use tomahawk's components on my project with no problems.But if you don't like Tomahawk try Jenia.
pringia at 2007-7-13 20:33:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Hey Guys...When I have to sum column values inside a pager list, whow can I do it?
boxx@portaljava.coma at 2007-7-13 20:33:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
Tomahawk dosent support lazy paging to a database does it? Not without customization? I think you must load the whole dataset from the database, and not only the "pages" you want.
jomarala at 2007-7-13 20:33:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
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.
kcounsella at 2007-7-13 20:33:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...