title: Conditionally display row using JSF Datatable
body: <p>I have some JSF code that currently works (as shown below), and I need to modify it to conditionally suppress the display of certain rows of the table. I know how to conditionally suppress the display of a particular cell, but that seems to create an empty cell, while what I'm trying to do is to not display the row at all. </p>
  
  <p>Any suggestions?</p>
  
  <pre><code>&lt;h:dataTable styleClass="resultsTable" id="t1" value="#{r.common}" var="com" headerClass="headerBackgrnd" rowClasses="rowOdd, rowEven" columnClasses="leftAlign, rightAlign, leftAlign"&gt;
      &lt;h:column&gt;
          &lt;h:outputText rendered="#{com.rendered}" styleClass="inputText" value="#{com.description}: " /&gt;
      &lt;/h:column&gt;
      &lt;h:column&gt;
          &lt;h:outputText styleClass="outputText" value="#{com.v1}" /&gt;
      &lt;/h:column&gt;
      &lt;h:column&gt;
          &lt;h:inputText styleClass="inputText" value="#{com.v2}" /&gt;
     &lt;/h:column&gt;
  &lt;/h:dataTable&gt;
  </code></pre>
  
  <p>Basically, the line that says <code>#{com.rendered}</code> will conditionally display the contents of a single cell, producing an empty cell when <code>com.rendered</code> is false. But I want to skip an entire row of the display under certain conditions - how would I go about doing that?</p>