Okay, after eating dinner, I figured out that a work around can be done to
get the currently selected node by binding the tree2 component to a backing
bean that has a HtmlTree object. And from there this.selectedNode =
yourTreeObject.getNode().getDescription. The wiki should be updated to
reflect that.
Anyway, moving forward, I'm still trying to decipher why the action
attribute was mapped to this selectedNode() method (
action="#{treeBacker.selectedNode} ). I mean how did it all work out? When
the selectedNode() executes, yes it assigns the descripton of the current
selected node to the selectedNode variable, then what? What's the relation
of that selectedNode() method to the public List getChildren() method of the
LazyTreeNode.java which I assumed is the one responsible for fetching the
children of the clicked node.
I hope someone can give a refresher or something. Thanks.
kewldude wrote:
>
> I'm trying to use the Alternative Tree2 Lazy Loading Method...by jtmille30
> approach in lazy loading my tree.
>
> I'm just wondering why the action attribute in the jsp is pointing to
> (action="#{treeBacker.selectedNode} ) which is in the back end its
>
> public void selectedNode() {
> this.selectedNode =
> this.getTreeModel().getNode().getDescription();
> }
>
> This.getTreeModel().getNode() is non existent. I'm using myfaces 1.1.5
> core and impl and tomahawk 1.1.6. What is only available to me is
> this.getTreeModel().getNodeByID(String nodeID)...
> I don't know what to put in the nodeID.
> Anyone care to clear the confusion here?
> At the same time what does that method (selectedNode) really do?
>
>
>
--
View this message in context:
http://www.nabble.com/Tree2-Lazy-Loading-Confusion-tf4206825.html#a11969024
Sent from the MyFaces - Users mailing list archive at Nabble.com.