1 Reply Latest reply on Oct 29, 2012 12:54 PM by kenfinni

    rich:tooltip in Portlet

    uwew

      Hi!

       

      Tried to use the rich:tooltip within a portlet, unfortunately i was unable to get it working with the following code:

       

      <rich:panel id="panel1">

          PANEL

             <rich:tooltip id="tt2" for="panel1">

                 Tooltip Text

             </rich:tooltip>

      </rich:panel>

       

      <div id="panel2">

          PANEL 2

      </div>

      <rich:tooltip value="This is a tool-tip." target="panel2" id="tt3" followMouse="true" zindex="200"/>

       

      Should this work in a portlet? Or are there any problems with this tag when using it in a bridge environment?

       

      Environment: GateIn 3.4, Richfaces 4.2.3.Final, Portletbridge 3.1.0.CR1

       

      Kind Regards,

      Uwe

        • 1. Re: rich:tooltip in Portlet
          kenfinni

          For your first example, it is unnecessary to specify "for" as an attribute on rich:tooltip as it is automatically associated with the parent component.  An example of this is part of the RichFaces Showcase portlet in PBR.

           

          With the second example, we don't currently have an example of that approach, so am uncertain as to whether there may be a bug with using tooltip that way.  One thing you could check is whether the target on the tooltip is updated to include the portlet namespace, otherwise it might be that the ajax in the tooltip doesn't have the correct id of what it should be rendering against.

           

          Ken