Primefaces p:ajax在p:outputPanel中不工作
我正在尝试使用p:ajax调用内部的侦听器。我在执行此操作时遇到此错误-无法附加到非ClientBehaviorHolder父级 我也尝试过同样的方法,但我得到了同样的错误。我认为这是我的代码的问题Primefaces p:ajax在p:outputPanel中不工作,primefaces,jsf-2.2,Primefaces,Jsf 2.2,我正在尝试使用p:ajax调用内部的侦听器。我在执行此操作时遇到此错误-无法附加到非ClientBehaviorHolder父级 我也尝试过同样的方法,但我得到了同样的错误。我认为这是我的代码的问题 <p:columns rendered="#{someColumns.isColumnVisible(propName)}" sortBy="#{propName}" style="padding: 0px;" sortFunction="#{dataNav.s
<p:columns rendered="#{someColumns.isColumnVisible(propName)}"
sortBy="#{propName}" style="padding: 0px;"
sortFunction="#{dataNav.sortOrders[propName]}">
<p:outputPanel id="#{propName}Cell" layout="block"
style="width: 100%;
height: 100%; padding: 4px; margin: 0; cursor: pointer;" autoUpdate="true">
<!-- <ui:insert /> -->
<p:ajax event="click" global="true" immediate="true"
listener="#{selectedRowHandler.setSelectedRowKey(rowKey)}"
process="@this" update="#{tableId} #{render}" disabled="#{disabled}" />
<p:ajax event="click" global="true"
listener="#{selectedRowHandler.setSelectedRowKeyOnDblClick(rowKey)}"
process="@this" update="#{tableId} #{render}" disabled="#{disabled}" />
</p:outputPanel>
</p:columns>
我使用的是primefaces 6.1。可能与