[
http://issues.apache.org/jira/browse/TOMAHAWK-584?page=comments#action_12426311
]
Mike Kienenberger commented on TOMAHAWK-584:
--------------------------------------------
How to perform an action and know which node is currently selected:
Sean wrote......
===============================
Store a reference to your tree in your backing bean with:
<t:tree2 id="foo" ... binding="#{treeBacker.tree}">
Then in your action method you have
public String selectedNode()
{
this.selectedNode = tree.getNode();
return("main");
}
The tree always knows the current node when processing an event (much
like a data table knows the current row.)
> Improve the Tree 2 documentation
> --------------------------------
>
> Key: TOMAHAWK-584
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-584
> Project: MyFaces Tomahawk
> Issue Type: Improvement
> Components: Tree2
> Reporter: Wendy Smoak
> Assigned To: Mike Kienenberger
>
> Mike Kienenberger made a few comments about missing documentation for Tree 2:
> Most of the documentation is in the wiki, except for the tld.
> However, three attributes aren't documented at all: value, var, and
> varNodeToggler.
> No documentation on what the allowable facets are.
> No documentation stating that expand and collapse facets need to be UIGraphic
> components.
> Discussion thread:
> http://www.mail-archive.com/dev%40myfaces.apache.org/msg16266.html
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira