hi,
i m new to
jsf.
i m making an app with
struts and jsf.
i need to create radio button in diff row but when i used <h:selectOneRadio>
or similar tag and run my app <h:selectOneRadio> will automatically creates table.
I mean if i write
<h:selectOneRadio id="correctAns" value="#{QuestionBean.correctAns}" >
<f:selectItem itemValue="0" itemLabel="Answer1" />
<f:selectItem itemValue="1" itemLabel="Answer2" />
<f:selectItem itemValue="2" itemLabel="Answer3" />
<f:selectItem itemValue="3" itemLabel="Answer4" />
<f:selectItem itemValue="4" itemLabel="Answer5" />
</h:selectOneRadio>
html generated will be
<table id="addMultiChoiceQuestion:correctAns">
<tr>
<td>
<label><input type="radio" name="addMultiChoiceQuestion:correctAns" value="0"> Answer1</input></label></td>
<td>
<label><input type="radio" checked name="addMultiChoiceQuestion:correctAns" value="1"> Answer2</input></label></td>
<td>
<label><input type="radio" name="addMultiChoiceQuestion:correctAns" value="2"> Answer3</input></label></td>
<td>
<label><input type="radio" name="addMultiChoiceQuestion:correctAns" value="3"> Answer4</input></label></td>
<td>
<label><input type="radio" name="addMultiChoiceQuestion:correctAns" value="4"> Answer5</input></label></td>
</tr>
</table>
Is der any way to avoid that.
Thank you.