1 Reply Latest reply on Oct 7, 2008 4:31 AM by tomek szzzaaos

    rich:dataList problem?

    tomek szzzaaos Newbie

      Hi, not sure if it's limitation or bug in rich:dataList,

      <rich:dataList value="#{page.finishes}" var="finishItem">
       <s:link view="/browse.xhtml" value="#{finishItem.description}"/>
       <f:verbatim><br/></f:verbatim>
       <rich:dataList value="#{finishItem.finishStockLines}" var="stockLineItem">
       <s:link view="/browse.xhtml" value="#{stockLineItem.description}"/><br/>
       </rich:dataList>
      </rich:dataList>
      


      gives me the error:
      javax.faces.FacesException: javax.el.PropertyNotFoundException: /home.xhtml @81,87 value="#{stockLineItem.description}": Property 'description' not found on type org.hibernate.collection.PersistentSet
      


      but when I use c:forEach like below it works fine.

      <c:forEach items="#{page.finishes}" var="finishItem">
       <s:link view="/browse.xhtml" value="#{finishItem.description}"/>
       <f:verbatim><br/></f:verbatim>
       <c:forEach items="#{finishItem.finishStockLines}" var="stockLineItem">
       <s:link view="/browse.xhtml" value="#{stockLineItem.description}"/<br/>
       </c:forEach>
      </c:forEach>
      


      Any idea?

      Thank you,
      Tomek