title: Using ViewHandler.writeState with JSF
body: <p>I've Overwritten the ViewHandler so that i can hide some elements.
  what I do is for a given element in writeState
  i put </p>
  
  <pre><code>component.setRendered(false);
  </code></pre>
  
  <p>I'm having a strange behaviour.</p>
  
  <p>In this example i render false the component with id = "masterTabs"
  if my page contains this </p>
  
  <pre><code>    &lt;h:form&gt;&lt;/h:form&gt;
      &lt;h:panelGroup  id="masterTabs"&gt;
        part that should be hidden
      &lt;/h:panelGroup&gt;
  </code></pre>
  
  <p>It works Correctly, but if i omit the <code>&lt;h:form&gt;</code>
  It always shows it.</p>
  
  <p>So when in my page i have only </p>
  
  <pre><code>&lt;h:panelGroup  id="masterTabs"&gt;
    part that should be hidden
  &lt;/h:panelGroup&gt;
  </code></pre>
  
  <p>It is always visible, even though in debug mode i can see that in writeState it is setting render to false for this component.</p>
  
  <p>Thank you.</p>