title: How to add a JavaScript listener to a PrimeFaces Ajax event
body: <p>I want to listen pickList transfer event via javascript method, </p>
  
  <p>Listener works well with java bean:</p>
  
  <pre><code>&lt;p:pickList value="#{pickListBean.cities}" var="city" 
  itemLabel="#{city}" itemValue="#{city}"&gt;
  &lt;p:ajax event="transfer" listener="#{pickListBean.handleTransfer}" /&gt;
  &lt;/p:pickList&gt;
  </code></pre>
  
  <p>But that doesn't work:</p>
  
  <pre><code>listener="myJavaScriptMethod(event)"
  </code></pre>
  
  <p>Are there any way listening events like above?</p>