title: Show/hide another input fields using h:selectBooleanCheckbox
body: <p>I am using JSF2 and Java to build a web application. I want to build a form like the one at the picture below:</p>
  
  <p><img src="https://i.stack.imgur.com/2GiAN.jpg" alt="alt text"></p>
  
  <p>When somebody unchecks the checkbox the form should disappear:
  <img src="https://i.stack.imgur.com/cgrLB.jpg" alt="alt text"></p>
  
  <p><a href="http://www.sencha.com/examples/pages/forms/forms.html" rel="noreferrer">Here</a> is an example with gwt.</p>
  
  <hr>
  
  <p>So far,
  I tried some stuff with the <code>&lt;f:ajax&gt;</code> tag and an <code>PropertyActionListener</code> in the managedBean but it didn't work. Can somebody give me an example or at least some hints to accomplish my goal. I would be really thankfull</p>