title: Submit from multiple forms
body: <p>I have several forms in my jsf application and I want to submit from some of them my data to persist the data in the database.</p>
  
  <p>My <code>xhtml</code> looks like that:</p>
  
  <pre><code>&lt;h:panelGroup id="tempOptionGroup"&gt;
  &lt;h:form id="tempOptionForm" &gt;
  ...
  &lt;/h:form&gt;
  &lt;/h:panelGroup&gt;
  
  &lt;h:form id="2Form" &gt;
  ...
  &lt;/h:form&gt;
  
  
  &lt;h:panelGroup id="panel"&gt;
  &lt;h:form id="3Form"&gt;
  ...
  &lt;/h:form&gt;
  &lt;h:panelGroup&gt;
  
  &lt;h:form id="buttonForm"&gt;
  &lt;p:commandButton value="Submit"
  action="#{Bean.callPersist}" style="margin-top:5px"
  id="submit" /&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>How to submit all these 3 forms with one <code>p:commandButton</code></p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I looked up some properties of <code>h:commandButton</code> and I read that <code>process=":tempOptionGroup:tempOptionForm"</code> would process the first form, does this also work with several forms?</p>