This content has been marked as final.
Show 3 replies
-
1. Re: rich:tree
jonask Jun 10, 2011 2:26 AM (in response to a.bond)1 of 1 people found this helpfulif you have a selectionChangedListener() in your bean you can check there if its leaf, if true dont select!?
-
2. Re: rich:tree
a.bond Jun 10, 2011 2:47 AM (in response to jonask)Jonas Kemper wrote:
if you have a selectionChangedListener() in your bean you can check there if its leaf, if true dont select!?
Thank you for idea. But can you tell how to cancel selection change in selectionChangedListener()?
-
3. Re: rich:tree
jonask Jun 10, 2011 3:26 AM (in response to a.bond)http://pastebin.com/kqJXsMJW -> my listener.
i think you have to get the node with tree.getRowData and check if its leaf and then set a different selection (the parent e.g.)
i wrote a funcion "selectSpecificNode(node)" which does something like that for me... : http://pastebin.com/5xH9JSqx