Am Thursday 29 September 2005 17:04 schrieb Marcel Ruff:
> Hi,
>
> i have a tree2, but how do i detect in my
> backing bean which node id was clicked?
>
> I'm using actionListener="#{mybean.clicked}" and
> looking into the delivered ActionEvent instance
> didn't help me yet.
Probably the easiest way is to define a commandLink and pass a parameter (with
<f:param ...>) with the action that contains a value from your node.
<h:commandLink immediate="true" action="#{bean.action}"
actionListener="#{t.setNodeSelected}">
<h:outputText value="#{node.description}"/>
<f:param name="id" value="#{node.id}"/>
</h:commandLink>