-
1. Re: Very simple Tree
nbelaevski Mar 12, 2007 9:18 AM (in response to trouby)Hello!
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. -
2. Re: Very simple Tree
trouby Mar 12, 2007 2:28 PM (in response to trouby)That would be great,
Any samples? :)
Thanks. -
3. Re: Very simple Tree
davidcopeland Mar 13, 2007 6:48 PM (in response to trouby)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?
-
4. Re: Very simple Tree
ishabalov Mar 13, 2007 8:07 PM (in response to trouby)If you can load source from svn, here is the example
http://anonsvn.jboss.org/repos/richfaces/trunk/richfaces-samples/richfaces-demo/src/main/java/org/richfaces/demo/tree/
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.