Hi. I have a question about the navigator and how to make the node I click "selected" (dark green).
The navigator content is created from a bean. All items are BasicLeafTreeNodes or BasicContainerTreeNodes. The bean sets a submitvalue that is handled by a ssjs. The ssjs basically just sets a few viewscope variables in order for the partial refresh to open the correct view and database.
All that works okey, but I fail to see where and how I can set the node selected.
I've tried giving each node an id in the bean (node.setId()) and then in the onItemClick event access the node thru getComponent() but it does not work (getComponent() is null). My intention was to get get a handle to the node and use setSelected(true).
PageTreeNodes have an attribute called selection, but BasicLeafTreeNodes dont have that, besides I dont get how those work anyway.
expandable="true" expandLevel="0"
onItemClick="#{javascript:menu.run(context.getSubmittedValue())}">
refreshMode="partial" submit="true" refreshId="reloadPanel"
action="#{javascript:menu.run(context.getSubmittedValue())}">
Best regards,
Katarina