This content has been marked as final.
Show 2 replies
-
1. Is it possible to have different icons for the nodes in an HtmlTreeNodesAdaptor based on their class?
nbelaevski Jan 12, 2011 12:21 PM (in response to lrp)Hi,
Set value expressions for icon attributes of HtmlTreeNode that will provide desired icon based on 'var' value like this:
<rich:tree var="node">
...
<rich:treeNode icon="#{var.class.simpleName eq 'Foo' ? 'foo' : 'bar'}">
-
2. Is it possible to have different icons for the nodes in an HtmlTreeNodesAdaptor based on their class?
lrp Jan 13, 2011 3:36 AM (in response to nbelaevski)That worked great. I actually did manage to find a workaround using a wrapper class, but your way is so much more elegant. Thank you very much!