0 Replies Latest reply on Nov 22, 2012 9:51 AM by ravindra ravuri

    when I am using tool tip in rich:tree i am geeting the js error

    ravindra ravuri Newbie

      The following message I am getting with tool tip

      please help me to solve this problem

       

      Message: 'this.toolTip' is null or not an object

      Line: 9757

      Char: 1

      Code: 0

      URI: http://localhost:8080/Versions/a4j/g/3_2_2.SR1/org/richfaces/ui.pack.js

       

      Sample code is like this:

       

      <a:outputPanel id="treeOP">

      <rich:tree id="seriesTreeId2"

       

      value="#{aTree.treeNode}"

      var="item"

      ajaxKeys="#{null}"

      nodeSelectListener="#{aTree.processSelection}"

      changeExpandListener="#{aTree.processExpansion}"

      stateAdvisor="#{productTreeStateAdvisor}"

      switchType="ajax"

      icon="/resources/images/video_sm.jpg"

      iconLeaf="/resources/images/video_sm.jpg"

      showConnectingLines="true"

      ajaxSubmitSelection="true"

      adviseNodeOpened="#{productTreeStateAdvisor.adviseNodeOpened}"

      adviseNodeSelected="#{productTreeStateAdvisor.adviseNodeSelected}"

      ajaxChildActivationEncodeBehavior="none"

      >

       

      <rich:treeNode icon="/resources/images/video_sm.jpg" id="sampleNode"

      selectedClass="selectedTreeNode"

      ajaxChildActivationEncodeBehavior="none">

      <h:outputText value="#{item.productDisplayName}"/>

      <rich:toolTip for="sampleNode" ajaxChildActivationEncodeBehavior="none"

      ajaxNodeSelectionEncodeBehavior="none">

      Test data

      </rich:toolTip>

      </rich:treeNode>

       

      </rich:tree>

      </a:region>

      </a:outputPanel>