title: Rendered attribute in PrimeFaces
body: <p>I would like to have a group of components that are rendered only when a certain condition is met. Something like this:</p>
  
  <pre><code>&lt;p:ajax event="select" update=":containerEditorForm:eventTabs:actionProperties"/&gt;
  
  ...
  
  &lt;p:column&gt;
      &lt;p:outputPanel id="actionProperties"&gt;
          &lt;p:outputPanel rendered="#{commandBean.eventList.activationActionTree.selectedNode ne null}"&gt;
              &lt;p:message&gt;message1&lt;/p:message&gt;
              &lt;p:message&gt;message2&lt;/p:message&gt;
          &lt;/p:outputPanel&gt;
      &lt;/p:outputPanel&gt;
  &lt;/p:column&gt;
  </code></pre>
  
  <p>The above solution works fine, but is it really necessary to have two <code>outputPanel</code> components, or some other container components, to make this possible? (The outer panel having the <code>id</code> attribute, and the inner panel having the <code>rendered</code> attribute.) Ideally, I would use <code>id</code> and <code>rendered</code> in the same element, but this doesn't seem to work.</p>