title: Drop down menu with action button in PrimeFaces
body: <p>Using primefaces, how can I implement dropdown list, which immediately fulfills the action to go to the next page?</p>
  
  <p>I have a dropdown list:</p>
  
  <pre><code>&lt;p:selectOneMenu id="names" value="#{backing.name}"&gt;
      &lt;f:selectItem itemValue="1" itemLabel="Peter Jan" /&gt;
      &lt;f:selectItem itemValue="2" itemLabel="Tom Bert" /&gt;
      &lt;f:selectItem itemValue="3" itemLabel="Magda" /&gt;
  &lt;/p:selectOneMenu&gt;
  </code></pre>
  
  <p>And then press a button:</p>
  
  <pre><code>&lt;h:commandButton action="detail" value="View Detail"/&gt;
  </code></pre>
  
  <p>I want this in one action:</p>
  
  <p>Select "name" from dropdown with immediate "button-pressed"</p>