Im trying to use "SelectOneRadio", inside a dataList with a LinkedList, but I got a problem.
All the Radio boxes are connected, so when I click one the other is deselected, even if its in another row.
Can someone help me?
Here is my code:
Code: Select all
<p:dataList value="#{userM.testSelected.questions}" var="q">
<h:outputText value="#{q.question}" />
<p:selectOneRadio value="#{q.question}" layout="pageDirection">
<f:selectItems value="#{q.answer}" />
</p:selectOneRadio>
</p:dataList>