1 Reply Latest reply on Feb 6, 2011 7:31 PM by harpritt

    rich:treeNode different face for selected node

    harpritt

      Hi All

       

      How would i go about making various children of a treeNode visable when that node is selected.

       

      I would like to hide a <h:graphic> and display a <h:inputText> when the containing <rich:treeNode> is selected.

       

      as allways all help is greatly appreciated.

        • 1. rich:treeNode different face for selected node
          harpritt

          Ok heres how i did it..... so stupid for not seeing this sooner.... went to get a sandwhich and the solution was obvious

           

          take selection of the node in the backing bean, compare it node that im currently on... i used the id of my backing element

          then tell the rich:tree to rerender itself on selection.

           

          i was kinda hoping that i could use <a4j:outputPanel> to autimatically render itself after the node selection.... but it didnt work...

           

          .... anyway hope it helps someone.