Hi,
I'm having another issue with my tree2 component.
I'm using a TreeModelBase field to be able to access the currently
selected node within my backing bean, which should be possible regarding
to the Javadocs by using the method getNode().
I have a page with a tree2 component, from which I can select a node and
this node is highlit according to the css styles.
If I invoke a method in the backing bean where the tree2 is hosted as
well by pressing an commandButton, I don't get any values for
TreeModelBase.getNode().
The value remains 'null' regardless if a node is selected in the tree or
not.
I attached an ActionListener to the nodes and when this is invoked, the
TreeModelBase.getNode() method is actually returning the currently
selected node (which has triggered the listener).
I have verified that I'm dealing with the same instance of the bean with
a debugger and they are indeed the same.
Why can't I access the currently selected node in the backing bean
though in the action listener?
I don't have any validators attached to the component and also a generic
<h:messages/> in the same jsp page doesn't print any errors.
Any thoughts? What would be the best practise to access the currently
selected node?
Thanks for any help,
Kurt