I have a problem with the event on a treenode.
On my ".jspx" file, I'm using the following code:
Code:
...
<ice:tree id="applicationTree" value="#{bean.treeModel}" var="item" hideRootNode="false" hideNavigation="false" imageDir="/images/">
<ice:treeNode id="treenode">
<f:facet name="content">
<ice:panelGroup style="display: inline">
<ice:panelGroup style="display: inline">
<ice:commandLink actionListener="#{bean.treeNodeClick}" value="#{item.userObject.text}" />
</ice:panelGroup>
</ice:panelGroup>
</f:facet>
</ice:treeNode>
</ice:tree>
...
And in my bean:
Code:
...
public void treeNodeClick(ActionEvent event) {
HtmlCommandLink html = (HtmlCommandLink) event.getSource();
TreeNode treeNode = (TreeNode)html.getParent().getParent().getParent();
...
}
My problem is that the first time I click on one treenode of the tree I get it.
But the next times I always get the last treenode of the tree ???
I don't understand why...
Do you have any ideas ?
Thanks
regards,
Bal.