我想通过javascript方法收听pickList传输事件,
侦听器适用于 java bean:
<p:pickList value="#{pickListBean.cities}" var="city"
itemLabel="#{city}" itemValue="#{city}">
<p:ajax event="transfer" listener="#{pickListBean.handleTransfer}" />
</p:pickList>
但这不起作用:
listener="myJavaScriptMethod(event)"
有没有办法像上面那样监听事件?