This content has been marked as final.
Show 2 replies
-
1. Re: @Datamodel ?
konikoni Jan 18, 2007 5:51 AM (in response to konikoni)Events -> onetomany Games
Output in a Html site
foreach ( Events )
output(Event)
foreach ( Games )
output( Games )
How can i implement such a case in seam ? -
2. Re: @Datamodel ?
pmuir Jan 18, 2007 6:00 AM (in response to konikoni)It depends on which JSF view handler you use. If you use facelets
e.g.<ui:repeat value="#{events}" var="event"> <h:outputText value="#{event.name}" /> <ui:repeat value="#{event.games}" var="game"> <h:outputText value="#{game.name}" /> </ui:repeat> </ui:repeat>
If you use JSP then look at h:datatable, c:foreach, t:dataList etc.