0 Replies Latest reply on Jul 1, 2010 9:54 AM by Rajesh Gowda

    how to highlight selected node in <rich:tree>

    Rajesh Gowda Newbie

      Hello,

       

      I am using richfaces v3.3.1, i am using rich tree and i need to highlight the tree node when it is selected(clicked).

      I tried the following way and it was selecting the whole row in the tree area, but i want to select only the text

       

      following is my code,

       

      <rich:tree id="tree" var="item" switchType="ajax"
      value="#{managedBean.treeNode}" ajaxKeys="#{null}"
      selectedClass="tree-node-selected">
      and i have the css as
      .tree-node-selected {
         background-color: #99CCFF;
      }
      Following i have attached the image of the present behavior, and i would like to achieve as it is in the second image.

      tree.jpg

       

      can somebody help in this .....

       

      Thanks in advance,

       

      BR,

      rAj.