[jboss-user] [JBoss Seam] - List within a list
odedia
do-not-reply at jboss.com
Sat Jan 5 09:08:07 EST 2008
Hi,
I'm trying to create a simple JSF page where there's a list of questions, and in each question, there's a list of possible answers. I manage to get the questions list, but the "inner" list of possible answers is not presented at all.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:s="http://jboss.com/products/seam/taglib">
| <body>
|
| <h2>Quiz</h2>
|
| <h:form>
| Please select your answers<br />
|
| <s:selectItems value="#{questions}" var="selectedQuestion">
| <h:outputText value="#{selectedQuestion.questionText}"></h:outputText>
| <p/>
| <ui:repeat value="#{selectedQuestion.possibleAnswers}" var="possibleAnswer">
| <h:outputText value="#{possibleAnswer.answerText}"></h:outputText>
| </ui:repeat>
| </s:selectItems>
| <h:commandButton type="submit" value="Submit"
| action="#{manager.checkAllAnswers}" />
| </h:form>
| </body>
| </html>
|
What am I missing here? The object does have the list of possible answers inside, but it is not displayed.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117291#4117291
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117291
More information about the jboss-user
mailing list