title: Unable to call server listener from Java script
body: <p>Jdev Version :11.1.1.7.1
  I have a Java script method ,to calla bean method via server listener and it looks as below.</p>
  
  <p>JS method :</p>
  
  <pre><code> onSelection : function (itemId, metadata) {
      //        alert (itemId);
      AdfCustomEvent.queue(null, "ServerEvent",
      {
          itemId : itemId
      },false);
      return true;
      }
  </code></pre>
  
  <p>ServerListener:</p>
  
  <pre><code>&lt;af:serverListener type="ServerEvent"
                   method="#{pageFlowScope.contentBean.handleEvent}"/&gt;
  </code></pre>
  
  <p>Bean Method:</p>
  
  <pre><code>public void handleEvent(ClientEvent clientEvent) {
       logger.info("Start of method()");
       String itemId = (String)clientEvent.getParameters().get("itemId");
  </code></pre>
  
  <p>}</p>
  
  <p>the control goes to the JS method and i can see all the variables have been assigned values ,but the bean method does not get invoked from the JS via server listener.</p>
  
  <p>Can any one tell me what exactly am i doing wrong here.</p>