title: JSF render phase (why is my code being executed?)
body: <p>I'm currently investigating the performance of a JSF application. I have noticed that code is being executed even though rendered is set to false. For example, take this piece of code:</p>
  
  <pre><code>&lt;h:panelGroup rendered="#{bean.render}"&gt;
      &lt;my composite component here/&gt;
  &lt;/h:panelGroup&gt;    
  </code></pre>
  
  <p>Even though #{bean.render} returns false, I can clearly see from debug logs, that the code for my composite component is being executed during the render phase. It also looks like the code is being executed before #{bean.render} is even called. It isn't rendered in the HTML returned to the client, but it still appears that the server is executing the code.</p>
  
  <p>Can anyone explain this?</p>
  
  <p>Thanks.</p>