title: How to pass additional parameters in ajax request on change value in h:selectOneMenu?
body: <p>I need to pass some parameters (id in my example) to f:ajax listener method, but i don't know how. Anybody help ?</p>
  
  <pre><code>&lt;h:form&gt;
      &lt;!-- need to pass id value --&gt;
      &lt;input type="hidden" name="id" id="id" value="#{id}"/&gt;
  
      &lt;h:selectOneMenu value="#{visibility}"&gt;
        &lt;f:selectItems value="#{visibilities}" var="e" itemValue="#{e}" itemLabel="#{e.name}" /&gt;
        &lt;f:ajax event="valueChange" render="@form" execute="@form" listener="#{bean.updateVisibility}" /&gt;         
      &lt;/h:selectOneMenu&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>Bean:</p>
  
  <pre><code>class Bean {
      Integer id;
  
      public void setId() {
         this.id = id;
      }
  
      public void updateVisibility(AjaxBehaviorEvent event) { 
         // passed id
         log.debug(id);
      }
  }
  </code></pre>