Hi,
I'm using a <rich:tree /> component with a nodeFace attribute like that:
<r:tree value="#{groupTreeView.rootNode}" var="g" nodeFace="#{g.regionCode}" switchType="client" stateAdvisor="#{treeNodeExpandAdvisor.stateAdvisor}" > <r:treeNode type="AT" icon="/img/at.png" title="#{g.name}"> <h:outputText value="AT: #{g.name}" /> </r:treeNode> <r:treeNode type="DE" icon="/img/de.png" title="#{g.name}"> <h:outputText value="DE: #{g.name}" /> </r:treeNode> </r:tree>
If the nodeFace empty the tree will use first rendered treeNode without type defined