我的渲染有一張桌子,其中有一個單選按鈕預期用於h AJAX不工作。 即在選擇radioButton時需要重新呈現整個表單。 但它不工作。F:內部UI selectOneRadio:重複
這裏是我的代碼:
<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>
您的''屬性在EL表達式中包含語法錯誤。這是否也存在於您的真實代碼中? –
BalusC
好的,EL語法錯誤因此不是您具體問題的原因。現在我們終於可以提前:)這個問題在老版本的Mojarra版本中被認爲是一個錯誤。你在用Mojarra嗎?如果是這樣,哪個版本?如果它比較老舊(超過6個月),你有沒有試過升級它? – BalusC