title: How to submit form, from p:selectBooleanCheckbox change event
body: <p>I'm using primefaces and working on a complex form. I need to hide a part of the form, depending on the value of a checkbox</p>
  
  <pre><code>    &lt;p:selectBooleanButton id="input1" .... /&gt;
  &lt;p:inputText id="input2" /&gt;
  
  
  &lt;!-- the boolean checkbox --&gt;
  &lt;p:selectBooleanCheckbox id="checkBox1" value="#{bbean.someBoolValue}" &gt;
      &lt;p:ajax event="change" update=":#{p:component('someParentcComponentsId')}" /&gt;
  &lt;/p:selectBooleanCheckbox&gt;
  
  &lt;!-- some input fields here. These will be rendered depending checkBox1 value --&gt;
  &lt;p:panel rendered="#{bbean.someBoolValue}" id="hiddingPanel"&gt;   
      &lt;h:panelGrid columns="2" &gt;
  
          &lt;p:inputText id="input3" /&gt;
      &lt;/h:panelGrid&gt;
  &lt;/p:panel&gt;
  </code></pre>
  
  <p>So far, I've made that work, so when <code>checkBox1</code> is clicked, <code>hiddingPanel</code> is getting shown or hidden. But there's a catch:  the values of every input in that form ( e.g. <code>input1</code>, <code>input2</code> ) are lost, since the 'change' ajax event is not submitting their values.</p>
  
  <p>How could I make sure that <strong>all</strong> input values are submitted before updating the form ? </p>