title: How to pass a parameter along with h:commandButton
body: <p>One of the most common approaches to change locale in JSF+Seam - with <code>&lt;h:selectOneMenu&gt;</code>:</p>
  
  <pre><code>&lt;h:form  action="#{localeSelector.select}" rendered="false"&gt;
      &lt;h:selectOneMenu value="#{localeSelector.language}" onchange="submit()"&gt;
          &lt;f:selectItem itemLabel="English" itemValue="en" /&gt;
          &lt;f:selectItem itemLabel="Francais" itemValue="fr" /&gt;
      &lt;/h:selectOneMenu&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>I want to implement locale changes with buttons. So, the question is - how to pass the parameter (en, fr, etc.) to update the bean with <code>&lt;h:commandButton&gt;</code>? Maybe <code>&lt;h:inputHidden&gt;</code> would help?</p>