abkagevi12D97F
New Member
I`m developing a JSF application and I have a question regarding a XHTML page with JSTL. I want to display in an ui:repeat a number of question, a question and 3 answers (formated conditionally) and in front of the answers a tick (tickSmall.png) or an X (xSmall.png) if the questions are right or wrong.The answers are formated correctly, but the tick / X is not put correctly (I checked the booleans are correct, some are true, some are false). EVERY time it puts an X, even if there should be a tick.I have included xmlns:c="http://java.sun.com/jsp/jstl/coreThe code:\[code\] <ui:repeat var="n" value="http://stackoverflow.com/questions/15535730/#{answerResultBean.accessWrongAnswerColumnWrapperList}"> <hr /> <hutputText value="http://stackoverflow.com/questions/15535730/#{n.noQuestion}. #{n.question}" /> <hanelGrid columns="2" style="text-align: left;"> <c:choose> <c:when test="#{n.rightGridAnswerA}"> <h:form> <img src="http://stackoverflow.com/juritest/resources/img/tickSmall.png" alt="tick" /> </h:form> </c:when> <ctherwise> <h:form> <img src="http://stackoverflow.com/juritest/resources/img/xSmall.png" alt="wrong" /> </h:form> </ctherwise> </c:choose> <hutputText value="http://stackoverflow.com/questions/15535730/a) #{n.a}" style="#{n.userAnswerA ? 'font-weight:bold;' : 'font-weight:normal;'}" /> <c:choose> <c:when test="#{n.rightGridAnswerB}"> <h:form> <img src="http://stackoverflow.com/juritest/resources/img/tickSmall.png" alt="tick" /> </h:form> </c:when> <ctherwise> <h:form> <img src="http://stackoverflow.com/juritest/resources/img/xSmall.png" alt="wrong" /> </h:form> </ctherwise> </c:choose> <hutputText value="http://stackoverflow.com/questions/15535730/b) #{n.b}" style="#{n.userAnswerB ? 'font-weight:bold;' : 'font-weight:normal;'}" /> <c:choose> <c:when test="#{n.rightGridAnswerC}"> <h:form> <img src="http://stackoverflow.com/juritest/resources/img/tickSmall.png" alt="tick" /> </h:form> </c:when> <ctherwise> <h:form> <img src="http://stackoverflow.com/juritest/resources/img/xSmall.png" alt="wrong" /> </h:form> </ctherwise> </c:choose> <hutputText value="http://stackoverflow.com/questions/15535730/c) #{n.c}" style="#{n.userAnswerC ? 'font-weight:bold;' : 'font-weight:normal;'}" /> </hanelGrid> </ui:repeat>\[/code\]