title: Cascade SelectOneMenu and Parameter
body: <p>I created a separated Managed Bean to load State and City.</p>
  
  <p>I need to pass State value to the Bean, but I getting a null value.</p>
  
  <pre><code>&lt;p:selectOneMenu id="cgStage" value="#{order.cgState}"&gt; 
      &lt;f:selectItems  value="#{stateCityBean.lstState}" var="state"
          itemValue="#{state.cgState}" 
          itemLabel="#{state.noState}" /&gt;
  
      &lt;p:ajax listener="#{stateCityBean.listCities}" update="cgCity"&gt;
          &lt;f:setPropertyActionListener 
              target="#{stateCityBean.cgState}" 
              value="#{order.cgState}" /&gt;
      &lt;/p:ajax&gt;               
  &lt;/p:selectOneMenu&gt;
  
  &lt;p:selectOneMenu id="cgCity" value="#{order.cgCity}"&gt;
  ...
  &lt;/p:selectOneMenu&gt;
  </code></pre>
  
  <p>Is there any way to get the SelectOneMenu value direct from component?</p>
  
  <p>I tried get [copmonent.value], but didn't  work either. 
  Something like that:</p>
  
  <pre><code>&lt;p:selectOneMenu ...
      &lt;p:ajax listener="#{stateCityBean.listCities}" update="cgCity"&gt;
          &lt;f:setPropertyActionListener 
              target="#{stateCityBean.cgState}" 
              value="#{component.value}" /&gt;
      &lt;/p:ajax&gt;
  &lt;/p:selectOneMenu&gt;
  </code></pre>
  
  <p>Thank you guys</p>
  
  <p>PS: I know I could do that with a [commandButton], but I'm using a template and the save button is outside my page.</p>