1 Reply Latest reply on Dec 19, 2007 10:42 AM by ilya_shaikovsky

    tooltip on 3.1.3 GA doesn't work

    agori

      I can't make work the rich:toolTip component.
      For example:

      <div id="elementId">
       <p>The second simple example</p>
      </div>
      
      <rich:toolTip for="elementId">Using a toolTip</rich:toolTip>
      



      doesn't show anything. Rendered HTML:

      <span style="position: absolute; display: none; z-index: 99; background-color: red; visibility: visible;" id="j_id94" class="dr-rich-tool-tip rich-tool-tip"><span id="j_id94content">Using a toolTip</span><span style="display: none;" id="j_id94script"><script id="scriptj_id94" type="text/javascript">
      new ToolTip({'delay':0,'hideDelay':0,'onshow':'','event':'mouseover','onhide':'','oncomplete':''} ,"j_id94","_viewRoot","client",false,"bottom-right",false,10,10,"A4J.AJAX.Submit('_viewRoot',null,event,ajaxOptions)",{'control':this,'oncomplete':function(request,event,data){;Richfaces.tooltips['_viewRoot'].toolTip = $('j_id94');;Richfaces.tooltips['_viewRoot'].toolTipContent = $('j_id94content');;Richfaces.tooltips['_viewRoot'].displayDiv();},'parameters':{'j_id94':'j_id94'} ,'onbeforedomupdate':function(request,event,data){;Richfaces.tooltips['_viewRoot'].toolTip.style.display = 'none';},'actionUrl':'/listini-test/faces/datiGenerali.xhtml?javax.portlet.faces.DirectLink=true'} );;
      
      </script></span></span>
      


      As you can see, there is not "elementId" reference if the genrated script.