the attribute "icon" does not exist apparently....
Try iconLeaf, iconExpanded, iconCollapsed for icons from imagefiles. These attributes should be considered.
The code snippet is taken from Richfaces 4.1 final showcase. Is the showcase using obsoleted code ? Where can I find a working example?
Maybe the demo is not yet up-to-date.
Just take a look into the documentation: