Thanks Raphael. I gathered most of this from the example and browsing the code. I was hoping for more details. For example, I am not sure how to use a tree selection listener.
Rian
-----Original Message-----
From: Raphael [mailto:[EMAIL PROTECTED]]
Sent: Fri 1/14/2005 1:25 PM
To: 'MyFaces Discussion'
Subject: RE: tree question
x :tree has a tree model and tree selection listener as well as a Node class- DefaultMutableTreeNode - ( have a look at the source for exact names) . So you would need to instanciate a tree model - showing how the tree nodes a populated, an then assign the mode to x:tree value . Each node class will need a toString().
Hope this helps.
-----Original Message-----
From: Rian Houston [mailto:[EMAIL PROTECTED]]
Sent: 14 January 2005 17:25
To: MyFaces Discussion
Subject: x:tree question
Hello,
I am trying to use the Myfaces x:tree component but don't really understand how it works. I have successfully created an example similar to the one provided, but would like to add more features to it.
I would like to create a tree similar the standard model of email threads and messages. The root will contain a list of threads which can be expanded to see individual messages. When clicking on an individual message, I will like to show the full text in addition to who sent it and the date it was sent. I would also like to be able to add a new message to a given thread.
Does anyone have a more detailed example of using the tree component? Or can anyone provide some insight to get me started?
Thanks,
Rian
Title: RE: tree question
- RE: tree question Rian Houston
- RE: tree question Raphael

