RichFaces includes special utility class (org.richfaces.component.xml.XmlTreeDataBuilder) to create tree data structure from XML data. If tree data is taken from another source in your case, eg. Database, you should extend TreeNodeImpl class.
That would be great,
Any samples? :)
Did you figure out how to do this or get an example? I am trying to do the same thing, however want to load from a POJO. Any ideas on how to do it from a POJO?
If you can load source from svn, here is the example
of some POJO classes that are used in rich:tree demo.
I just implemented org.richfaces.component.TreeNode interface. However, that may be a little but "brutal force" approach.