2 Replies Latest reply on Feb 3, 2011 9:32 AM by jerarckill

    Rich:tooltip in composite component not rendering - Richfaces 4 - M5

    jerarckill

      Hello guys,

       

      I have been trying to use some composite component to display a <rich:tooltip> for some time now and, for some reason, it seems that it just does not work.

       

      If, in a xhtml page I write:

       

      <a4j:outputPanel>

           <rich:tooltip>

                <span>hello</span>

           </rich:toolTip>

      </a4j:outputPanel>

       

      The tooltip is displayed correctly.

      If, on the other side, I simply add the tooltip in a composite component like following:

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml"

            xmlns:h="http://java.sun.com/jsf/html"

            xmlns:composite="http://java.sun.com/jsf/composite"

            xmlns:f="http://java.sun.com/jsf/core"

            xmlns:ui="http://java.sun.com/jsf/facelets"

            xmlns:a4j="http://richfaces.org/a4j"

            xmlns:rich="http://richfaces.org/rich">

      <head>

      <title>Simple tooltip</title>

      </head>

      <body>

      <composite:interface>

      </composite:interface>

      <composite:implementation>

              <rich:tooltip>

                  <span>Here is my tooltip</span>

              </rich:tooltip>

      </composite:implementation>

      </body>

      </html>

       

      and reference it from my xhtml page like following:

      <a4j:outputPanel>

           <whatever:tooltip/>

      </a4j:outputPanel>

       

      where "whatever" has been declared to the page as necessary:

      xmlns:whatever="http://java.sun.com/jsf/composite/components/whatever"

       

      the tooltip does not get displayed anymore.

      Note that the composite component is correctly added to the xhtml page as I see the translated code when viewing the source of my rendered page.

       

      Any idea?

      Thank you very much in advance for your help!