title: Group visibility of rich:columns inside rich:datatable
body: <p>I have a set of columns inside a rich:datatable, those columns are visible based on some preprocessed conditions. An example of what I want to do is this:</p>
  
  <pre><code>&lt;rich:datatable value="tableList" var="list"&gt;
  
      &lt;h:panelGroup rendered="#{condition}"&gt;
          &lt;rich:column&gt;
              Component
          &lt;rich:column&gt;
  
          &lt;rich:column&gt;
              Component
          &lt;rich:column&gt;
      &lt;/h:panelGroup&gt;
  
      &lt;h:panelGroup rendered="#{not condition}"&gt;
          &lt;rich:column&gt;
              Component
          &lt;/rich:column&gt;
      &lt;/h:panelGroup&gt;
  
  &lt;/rich:datatable&gt;
  </code></pre>
  
  <p>The problem here is that the panelGroup tag never gets rendered inside the rich:datatable, even when I remove the "rendered" condition. I tried with an a4j:outputPanel and a few others but none worked.</p>
  
  <p>I could remove the panel and put the condition in each column but that would be the last thing I would do.</p>
  
  <p>Why is not working? Regards.</p>