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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...