title: Alternative of JSTL tags in JSF
body: <p>I want to use conditional css in my datatable. Here is my code.</p>
  
  <pre><code>    &lt;ui:repeat var="myVar" value="#{bean.list}" varStatus="row"&gt;
          &lt;c:if test="#{row.index % 2 == 0}"&gt;
              &lt;c:set value="RowColorGrid" var="rowClass"&gt;&lt;/c:set&gt;
              &lt;c:set value="ArticleColor" var="articleClass"&gt;&lt;/c:set&gt;
          &lt;/c:if&gt; 
          &lt;c:if test="#{row.index % 2 != 0}"&gt;
              &lt;c:set value="RowColorGrid2" var="rowClass"&gt;&lt;/c:set&gt;
              &lt;c:set value="ArticleColor2" var="articleClass"&gt;&lt;/c:set&gt;
          &lt;/c:if&gt;
      &lt;tr&gt;
         &lt;td&gt; Some value &lt;/td&gt;
         &lt;td class = "#{articleClass}"&gt;
             &lt;h:dataTable id="myId" value="#{bean.value}" var="myVO" width="100%"
                      rowClasses="#{rowClass}"&gt;
  
                           ----Some code---
             &lt;/h:datatable&gt;
        &lt;/td&gt;
   &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>But in JSF i don't want to use JSTL tags. Is there any other alternative for this? using some component of JSF???</p>
  
  <p>I want to use one class in td and one in row class of data table.</p>
  
  <p>Thanks in advance.
  Tarun Madaan</p>