1 Reply Latest reply on Sep 24, 2009 5:23 PM by Nick Belaevski

    Looking for Example Source Code

    Paul DiMilla Newbie

      Hello,

      I'm looking for the source that goes with the following example from Chapter 6 of the RichFaces Developers Guide.

      ...
      <h:form>
       <rich:tree style="width:300px" value="#{library.data}" var="item" nodeFace="#{item.type}">
       <rich:treeNode type="artist" iconLeaf="/images/tree/singer.png" icon="/images/tree/singer.png">
       <h:outputText value="#{item.name}" />
       </rich:treeNode>
       <rich:treeNode type="album" iconLeaf="/images/tree/disc.png" icon="/images/tree/disc.png">
       <h:outputText value="#{item.title}" />
       </rich:treeNode>
       <rich:treeNode type="song" iconLeaf="/images/tree/song.png" icon="/images/tree/song.png">
       <h:outputText value="#{item.title}" />
       </rich:treeNode>
       </rich:tree>
      </h:form>
      ...
      


      I am trying to do something similar; however, I am getting an error stating that my "item" is a String rather than an Object. It would be helpful for me to see the Java source for the library bean. Thank you in advance for your help!