How to set icons in PrimeFaces tree nodes
Hello,
I would like to set icons in PrimeFaces tree nodes. My icons are configured in the project CMS.
Unfortunately, the Resource Demo doesn't help me.
<p:tree id="treeSingle" value="#{treeBean.root}" var="node" selectionMode="single"
selection="#{treeBean.selectedNode}">
<p:treeNode icon="">
<h:outputText value="#{node.name}" />
</p:treeNode>
</p:tree>
In <p:treeNode> I need to set the icon attribute with a syntax that will retrieve icons from the CMS.