Well, to be honest, I do not think I am wanting to change the tree as
much as I am wanting to change the Treenode data that the tree takes.
The tree takes a value from a backing bean that returns a TreeNode
Object. Guess I am trying to figure out a way for a jsp developer to
dynamically change the way that this TreeNode is built without having to
access the bean itself and hardcoding the specifics. As you know, I am
using the tree2 component to display the directory structure of the log
files on my appserver. However, this directory path is hardcoded into
the bean during the Treenode creation. I would like to be able to pass
this starting directory into the tree, so that it can be read in before
the treeNode is actually built. So to recap, the tree itself is great,
works like a champ, I am just trying to figure a way to pass in
parameters, via jsp, into the method that builds the TreeNode.

Tim 

On Thu, 2005-03-03 at 11:50, Sean Schofield wrote:
> Tim,
> 
> I am going to move this discussion to the list in case this discussion
> is of interest to anyone else.
> 
> Can you be a little more specific about your feature request?  What do
> you mean by specifying the root location?  Are you referrring to the
> root location of the tree or a file system that is modeled by the tree
> (or are they the same?)
> 
> Right now <f:param> only works with JSF components that support it. 
> Tree2 does not really support <f:param> itself (although it could if
> we found a reason for that.)   You can use <f:param> inside your tree
> but only with components that support it (like commandLink).  Notice
> how I use it in the tree2 example for the document facet.
> 
> So if you are using <f:param> to try and configure the tree itself you
> won't get very far.  Again, we could consider using <f:param> but
> right now if you want to configure the tree you just change one of the
> attributes in the <x:tree2> tag.  For instance if you don't want to
> show the connecting lines you specify showLines="false".
> 
> sean
> 
> ---------- Forwarded message ----------
> From: Tim Pyle <[EMAIL PROTECTED]>
> Date: Thu, 03 Mar 2005 09:55:30 -0600
> Subject: Re: Tree2
> To: Sean Schofield <[EMAIL PROTECTED]>
> 
> 
> Hey man how's it going?
> Tree is working great, no problems yet. However, I have need to be able
> to do somehting, and not sure the best way to get it accomplished. I am
> needing to be able to pass in a parameter or two before the tree data
> gets built. I have the tree which gets it's data from a method in a
> backing bean. I would really like to find a way to get these parameters
> to the backing bean from the jsp page. I tried to use the <f:param> tag,
> but that didn't seem to work. Like in this one use of the file-structure
> tree, I would like the developer who writes the jsp page to be able to
> specify the root location that the tree will begin. And again, all of
> this is implemented within the bean, but I would like to find a way for
> the jsp guy to pass in the parameters. Any idea on this?
> 
> Tim
> 
> On Wed, 2005-03-02 at 22:10, Sean Schofield wrote:
> > Tim,
> >
> > How is the new tree working out for you?  Let me know if you find anything.
> >
> > sean

Reply via email to