Did you ever get an answer? It works fine for me in JBoss, but in Tomcat 5.5, it doesn't fire the method.
I would like to know the answer to this as well. Is is possible and/or can/should this be supported (repeated clicks keep firing the nodeSelectListener)
Ive got a tree (A) with a dependent tree (B) which has a dependent menu (C). If I click a node on A, then a node-dependent B appears. If I click a node on B then a node-dependent menu C appears. I'd like to be able to reselect my node on A in order to reset the state of B/C. I really don't want to have to add a separate button to refresh the state of the node in A.
You can add a4j:support for "onclick".
FYI, the onclick workaround worked fairly well. Here's what I did:
- removed the nodeSelectListener and reRender attributes from the rich:tree
- added an a4j:support tag
- Adjusted my backing bean actionListener code to take an ActionEvent instead of NodeSelectedEvent and to use treeState.getSelectedNode() instead of (HtmlTree)event.getComponent().getRowKey()
I'd still like to see first class support for this behaviour though .