title: How to set <selectOneMenu> value to bean variable?
body: <p>I am trying to set the value of <code>&lt;h:selectOneMenu&gt;</code> using the bean setter, but it is not working. Here is my .xml code:</p>
  
  <pre><code>   &lt;h:selectOneMenu value="#{adminActionController.tempBean.selectType}"&gt;
        &lt;f:selectItem itemLabel="Check" itemValue="Check" /&gt;
        &lt;f:selectItem itemLabel="Cash" itemValue="Cash"/&gt;
        &lt;f:ajax event="change" listener="#{adminActionController.tempBean.changeType}"/&gt;
     &lt;/h:selectOneMenu&gt;
  </code></pre>
  
  <p>And here is my bean code:</p>
  
  <pre><code>protected String selectType;
  
  public String getSelectType() {
      return selectType;
  }
  
  public void setSelectType(String selectType) {
      this.selectType = selectType;
  }
  </code></pre>
  
  <p>I tried a lot of ways, but something is still missing. I don't know what.
  It sets <code>h:inputText</code> values to bean, but I have a problem with dropdown values. 
  Can anybody help me?</p>