Rich:Tree exemplo Exadel

0 respostas
francis.junio

Boa noite galera… To precisando muito de fazer um treeView e eu nao sei muito bem como faze-lo. Peguei o exemplo do exadel, mas tenho algumas duvidas. segue o exemplo.

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

Esse library.data seria o que? que tipo? Alguem poderia me ajudar? Caso alguem tenha um exemplo mais explicativo, eu agradeço tb.

Obrigado a todos.

Criado 6 de julho de 2010
Respostas 0
Participantes 1