Disclaimer: Typing from memory -- may have bugs
<t:tree2
var="_node"
value="#{myBean.myModel}">
<f:facet name="node">
<t:commandLink action="#{myBean.nodeClicked}"
value="#{_node.description}">
<t:updateActionListener
property="#{myBean.activeNodeId}"
value="#{_node.identifier}" />
</t:commandLink>
</f:facet>
</t:tree2>
On 12/6/06, Treu Valentin <[EMAIL PROTECTED]> wrote:
Hi there,
i'm quite new to MyFaces and Tomahawk and therefore having the following
question:
Is it possible to detect for a t:Tree2 or t:PanelNavigation2 component which
element (i.e. leaf node) has been clicked ?
Since i have to build a dynamic menu structure that can always change every
leaf node has to get a
unique id with that i can react on the server. Also there should only be one
action method called
on the server which does invoke all further steps.
Until now i've only found examples that just open a new window or redirect
to a new jsp page when clicking on a
leaf node, but never one that tracks which leaf node has been selected,
followed by specific actions.
I hope someone can tell me if that's possible and how i can achieve this.
Thanks & regards
Valentin Treu