3 Replies Latest reply on Jun 10, 2011 3:26 AM by jonask

    rich:tree

    a.bond

      Hi!

       

      Can I make leaves not selectable? So that user can only select a node with cildren.

        • 1. Re: rich:tree
          jonask

          if you have a selectionChangedListener() in your bean you can check there if its leaf, if true dont select!?

          1 of 1 people found this helpful
          • 2. Re: rich:tree
            a.bond

            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

              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