title: JSF access html element value in bean class
body: <p>I have a JSF application in which I have a combo box.</p>
  
  <pre><code>&lt;h:selectOneMenu id="collectorType"
                             value="#{activityDataSource.object.type}"
                             rendered="#{empty activityDataSource.object.id}"
                             disabled="#{!sp:hasRight(facesContext, 'ManageApplication')}"
                             readonly="#{!sp:hasRight(facesContext, 'ManageApplication')}"
                             onchange="$('editForm:selectTypeButton').click();"&gt;
               &lt;f:ajax event="change" 
                      execute="@this" 
                      render="dsTransformationRule dsCorrelationRule"
                      listener="#{activityDataSource.handleCollectorTypeChange}" /&gt;
              &lt;f:selectItem itemValue="" itemLabel="#{msgs.select_collector_type}"/&gt;
              &lt;f:selectItems value="#{activityDataSource.collectorTypes}"/&gt;
            &lt;/h:selectOneMenu&gt;
  </code></pre>
  
  <p>And I am getting selected value of that combo box in bean class like:</p>
  
  <pre><code>public void setSelectedTransformationRule(String transformationRule)
          throws GeneralException {
      String collectorType = (String) getRequestParam().get("editForm:collectorType");
  }
  </code></pre>
  
  <p>And I am successful in doing so. I am calling this method through ajax onchage event of combobox.</p>
  
  <p>But if I try to get same combo box value in a different method i get null value.</p>
  
  <pre><code>public void handleCollectorTypeChange() throws GeneralException {
      String collectorType = (String) getRequestParam().get("editForm:collectorType");
  }
  </code></pre>
  
  <p>Any help !</p>