[jboss-user] [JBoss Seam] - nested datatables with s:link

lcoetzee do-not-reply at jboss.com
Sat Jul 15 12:32:25 EDT 2006


Hi,

I want to nest datatable, with the inside loop containing a s:link with an action. 

Something like:

  | <t:dataList value="#{sections}" var="currentSection" layout="simple"
  | 				rendered="#{not empty sections}" id="dt1">
  | 				<li>#{currentSection.sectionLabel}
  | 				<t:dataList value="#{currentSection.questions}"
  | 						var="currentQuestion" layout="simple"
  | 						rendered="#{not empty currentSection.questions}" id="dt2">
  | 						<li><s:link action="#{questionSelectionBean.selectQuestion}" id="selectQuestion">#{currentQuestion.questionLabel}</s:link></li>
  | 					</t:dataList>
  | 
  | 				</ul>
  | 				</li>
  | 			</t:dataList>
  | 

Each section has several questions associated with it (section is annotated with a @DataModel). 
It displays nicely, but as yet I have no clue how to get hold of the selected "currentQuestion" in my SFSB method (questionSelectionBean.selectQuestion).

Any ideas ?

Thanks
Louis

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958276#3958276

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958276



More information about the jboss-user mailing list