我有一个组件,我正在尝试禁用下面的panelGrid。
<h:selectBooleanCheckbox id="checkboxId" value="#{bean.checked}">
<p:ajax update="panelId" event="click"/>
</h:selectBooleanCheckbox>
<h:panelGrid id="panelId" rendered="#{!bean.checked}">
<h:outputLabel>some text</h:outputLabel>
<h:outputLabel>#registrationBB.registrationModel.homeAddress.actualAddressMathWithRegistration}</h:outputLabel>
</h:panelGrid>
作为结果,点击复选框没有任何效果。检查指示器甚至不会出现在复选框组件上,并且值bean:checked也不会发送到服务器。 我尝试使用
<a4j:ajax>
,检查指示器出现了,但面板没有刷新。如何正确使用复选框更新?
<f:ajax event="click" render="panelId" />
。在某些特定情况下,<p:ajax>
不起作用,我相信其中之一是被非 PrimeFaces 组件包装。 - BalusCh:form
标签? - Thang Pham