[jboss-user] [JBoss Seam] - Re: pagination problem, advice needed
liudan2005
do-not-reply at jboss.com
Wed Jan 24 18:05:23 EST 2007
Thanks Gavin. I've had a look at Query and it looks great. However, my situation is a bit more complicated. What I need is a way to to paginating the collocation based property of my entities. Here is my code:
| <h:dataTable value="#{persons}" var="person" >
| <h:outputText value="#{person.name}" />
| <h:outputText value="#{person.age}" />
| <h:dataTable value="#{person.reviews}" var="review" >
| <h:outputText value="#{review.title}" />
| </h:dataTable>
|
| <h:dataTable value="#{person.calls}" var="call" >
| <h:outputText value="#{call.duration}" />
| </h:dataTable>
| <h:dataTable>
|
As you can see, Query is good for paginating #{persons}. But for #{person.reviews}, I don't see a easy way of doing it. I have many entities that require this kind of multi-level pagination. Can you give any advices on this? Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006070#4006070
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006070
More information about the jboss-user
mailing list