1 Reply Latest reply on Dec 10, 2007 6:00 AM by Ivan B

    Problem with rich:dataList inside of rich:dataTable

    Ivan B Novice


      I have a rich:dataList component nested inside rich:dataTable. The problem is that rich:dataList "tl" variable does NOT iterate over the collection, but rather holds the whole collection provided in the value attribute.

      Here is a bit of code:

      <rich:dataTable id="cardList" var="card" value="#{cardList.resultList}"
       rendered="#{not empty cardList.resultList}"
       <f:facet name="header">Id</f:facet>
       <f:facet name="header">Name</f:facet>
       <s:link id="card" value="#{card.name}" view="/card.xhtml"
       <f:param name="cardId" value="#{card.id}" />
       <rich:panel rendered="#{not empty card.tagLinks}">
       <br />
       <h:outputText>Tags: (#{card.tagLinks})</h:outputText>
       <rich:dataList value="#{card.tagLinks}" var="tl">
       <h:outputText value="#{tl}" styleClass="label"></h:outputText>

      The result of which is as follows:

      Tags: ([mycards.entity.TagLink@753e7a, mycards.entity.TagLink@10bc88b])

      * [mycards.entity.TagLink@753e7a, mycards.entity.TagLink@10bc88b]

      Any suggestions what can be the problem?