title: cascading dropdown in primefaces 3.2 not working
body: <p>i wish to use cascading dropdown in primefaces 3.2 but its not working. below is my xhtml code:</p>
  
  <pre><code>&lt;p:selectOneMenu style="width: 150px" value="#{watchBean.exchange}"&gt;
                      &lt;f:selectItem itemLabel="NSE" itemValue="nse"/&gt;
                      &lt;f:selectItem itemLabel="BSE" itemValue="bse"/&gt; 
                      &lt;p:ajax event="change" update="sym" listener="#{watchBean.wow}" /&gt;
                  &lt;/p:selectOneMenu&gt; 
              &lt;p:selectOneMenu style="width: 150px" id="sym" value="#{watchBean.sl}" var="scrip"&gt;
                  &lt;f:selectItems  itemLabel="#{scrip.scripSymbol}" itemValue="#{scrip.scripSymbol}"/&gt;
              &lt;/p:selectOneMenu&gt; 
  </code></pre>
  
  <p>bean code:</p>
  
  <pre><code>import java.util.List;
  import javax.annotation.ManagedBean;
  import javax.inject.Named;
  import javax.enterprise.context.RequestScoped;
  import javax.faces.context.FacesContext;
  import javax.faces.event.ValueChangeEvent;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpSession;
  import javax.xml.ws.WebServiceRef;
  import service.MasterScrip;
  import service.StatelessWebService_Service;
  
  /**
   *
   * @author root
   */
  @javax.faces.bean.ManagedBean
  @javax.faces.bean.RequestScoped
  public class watchBean {
      @WebServiceRef(wsdlLocation = "WEB-INF/wsdl/localhost_8080/StatelessWebService/StatelessWebService.wsdl")
      private StatelessWebService_Service service;
  
      /** Creates a new instance of watchBean */
      public watchBean() {
      }
      String uname,scripSym,exchange;
      Integer scripID;
      List&lt;UserTrack&gt; ut;
  List&lt;MasterScrip&gt; sl;
      public List&lt;MasterScrip&gt; getSl() {
          return sl;
      }
  
      public void setSl(List&lt;MasterScrip&gt; sl) {
          this.sl = sl;
      }
  
  
      public String getExchange() {
  
          return exchange;
      }
  
      public void setExchange(String exchange) {
          sl=getAllScripByExchange(exchange);
          setSl(sl);
          this.exchange = exchange;
      }
  public void wow(ValueChangeEvent e)
  {    
      sl=getAllScripByExchange((String)e.getNewValue());
     // setSl(sl);
      //FacesContext.getCurrentInstance().renderResponse();
  
      // sl=getAllScripByExchange(exchange);
  } ....
  </code></pre>
  
  <p>i get the following error:</p>
  
  <pre><code>javax.el.MethodNotFoundException: Method not found: beans.watchBean@2e1b13.wow(javax.faces.event.AjaxBehaviorEvent)
  </code></pre>
  
  <p>i referred to <a href="https://stackoverflow.com/questions/8407183/how-do-i-get-primefaces-pselectonemenu-to-call-valuechangelistener">How do I get PrimeFaces &lt;p:selectOneMenu&gt; to call valueChangeListener?</a> and removed the listener from my code, kept only the value attribute for 1st dropdown,still it doesnt work, then it gives no error and the 2nd dropdown isnt filled dynamically.
  i am stuck in this, what is the cause of this error and how can it be solved?</p>