title: change rendered attribute from managed bean
body: <p>Im am experimenting a bit with JSF, the scenario is the following:</p>
  
  <p>I have a session scoped managed bean </p>
  
  <pre><code>@ManagedBean(name = "rand")
  @SessionScoped
  </code></pre>
  
  <p>where i have declared the following (among other things):</p>
  
  <pre><code>private UIOutput uiOutput;(plus getter and setter)
  </code></pre>
  
  <p>In my facelets page i have</p>
  
  <pre><code>&lt;h:outputLabel for="userGuess"  binding="#{rand.uiOutput}" 
  value="#{rand.listSize}" rendered="false"/&gt;
  </code></pre>
  
  <p>there is a button on the page, and on the action method of the button among other things i have</p>
  
  <pre><code>this.uiOutput.setRendered(true);
  </code></pre>
  
  <p>But it does not seem to work, the element will not be rendered.</p>
  
  <p>If a start it as rendered and change the attribute (setting it true or false) it works.
  I suspect it has something to do with the fact that the element starting as not rendered is not bound to the uiOutput object i have in my managed bean. How can i make it work in this case?</p>