title: How to make two JSF selectOneMenu that depend on each other?
body: <p>I have two instances of <code>selectOneMenu</code>, one dependent on the other. But my <code>processValueChange</code> in the bean is never invoked. JSP portion:</p>
  
  <pre><code>&lt;h:selectOneMenu id="slaPeriod" onchange="submit()" required="true"&gt; 
    &lt;f:selectItems value="#{LoginForm.periodList}"/&gt;
    &lt;f:valueChangeListener type="form.LoginForm" /&gt;
  &lt;/h:selectOneMenu&gt;
  </code></pre>
  
  <p>I want to have the selected option and have an associated option in the next <code>selectOneMenu</code>. If say option is:</p>
  
  <pre>
   OPTIONS       VALUES
   1. Weekly     1....52
   2. Monthly    Jan...Dec
   3. Quaterly   1...4
   4. Yearly     this drop down has to be disabled
  </pre>
  
  <p>Associated bean : </p>
  
  <pre><code>public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException 
  {
    System.out.println("Inside Process Value Change!!");
  }
  </code></pre>
  
  <p>This method is never invoked. Once this is done my problem will be resolved.</p>
  
  <p>If you have any idea please help me, I'm really confused. Every time there is a refresh action on selection but this method of the bean is never invoked.</p>