1 Reply Latest reply on Jul 22, 2009 5:40 AM by nbelaevski

    JSTL <c:if> inside <rich:scrollabledatatable> problem

    sautna

      Hey folks!

      I have a scrollable datatable of richfaces and inside it i would like to use <c:if> with the datatable iterating variable:

      simplified:

      <rich:scrollableDataTable value="#{AgentActionBean.agentContentHBAList}" var="item">
      ...
       <rich:column id="account" >
       <c:if test="${item.account!=null}" >
       <h:outputText value="#{item.account.name}" />
       </c:if>
       <c:if test="${item.account==null}" >
       <h:ocommandButton action="#{AgentActionBean.assign}" value="assign" />
       </c:if>
       </rich:column>
      ...
      </rich:scrollabledataTable>
      


      Unfortunatly, the c:if does not work. I tried several possibilities of the test expression, but it never worked.

      Is it possible, that the c:if does not work with iterating datatable variables?

      cause it works perfectly using variables directly from a getter in a Bean.

      Are there any workarounds?
      thx for your help!