I struggle with a UI Problem an hope someone can help.
I got a Tree component for navigation. The Navigation is dynamic so i exchange its datasource sometimes.
Maybe thats part of the problem.
My problem is that i dont receive ItemClickEvents. Of course i registered a Listener.
With firebug i can see that the ajax client sends the click events but i dont receive them on the server side.
Now, where is the catch?
Notice that for menu trees, using ValueChangeListener is probably more common. You will have to put the tree in immediate mode with setImmediate(true); if you use item click events, they are always sent immediately to server. It doesn’t really matter which event you use, but with click events you have to check which mouse button was clicked.