我正在渲染一个带有单选按钮的表格。即,在选择radioButton 时,需要重新渲染整个表单。但这是行不通的。
这是我的代码:
<h:form id="summaryForm" prependId="false">
<table>
<tbody>
<ui:repeat var="switchRow" value="#{designBean.switchReport.rowList}" varStatus="rowStatus">
<tr class="#{rowStatus.even?'even':'odd'}">
<td>
<h:selectOneRadio id="switchTypeSelectionId"
name="switchTypeSelection"
styleClass="choices"
onclick="selectRadioButton(this);"
value="#{designBean.designTool.switchProduct}">
<f:selectItem itemValue="#{switchRow.rowId}"/>
<f:ajax event="click" execute="@this" render="@form" listener="#{designBean.showIGBTDetails}"/>
</h:selectOneRadio>
</td>
<ui:repeat var="switchColValue" value="#{switchRow.rowValues}">
<td>
<h:outputText value="#{switchColValue}" />
</td>
</ui:repeat>
</tr>
</ui:repeat>
</tbody>
</table>
</h:form>