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

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

    Markus Sautner Newbie

      Hey folks!

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


      <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 test="${item.account==null}" >
       <h:ocommandButton action="#{AgentActionBean.assign}" value="assign" />

      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!