我通常会在更新子组件更新标签的组件上有问题。有以下设置时,如何更新父组件?
<p:dataTable id="myTable">
<p:selectBooleanCheckbox id="chkChkbx"
value="#{backBean.showCheckTransactions}" style="float:right; margin-left: 15px;">
<f:ajax update="myTable" listener="#{backBean.toggleCheckTransactions}"/>
</p:selectBooleanCheckbox>
非常简单的解决方案。使用p:ajax
(TAG)代替f:ajax
(标签)。