4 Replies Latest reply on May 29, 2013 11:43 AM by Jörg E

    rich:tooltip not working in rich:tab facet header (RF4)?

    Heiko Tappe Newbie

      I can't get rich:tooltip working in a rich:tab. I do something like:

       

      <rich:tabPanel id="tabPanel" switchType="ajax" itemChangeListener="#{handler.tabChanged}" binding="#{handler.tabPanel}">

        <rich:tab id="firstTab">

          <f:facet name="header">

            <h:graphicImage id="img" value="/images/img.png" />

            <rich:tooltip mode="client" target="img">Some tooltip</rich:tooltip>

          </f:facet>

       

      Moving the image and tooltip outside the tabPanel works without any change.

       

      Any idea?

       

      --Heiko

        • 1. Re: rich:tooltip not working in rich:tab facet header (RF4)?
          Tom Giberius Newbie

          try to wrap it with <a4j:outputPanel, for me this worked in certain cases.

           

          <a4j:outputPanel>

           

              "other components"

           

               <rich:tooltip showDelay="1000" >

                     #{tekst.tooltipVolgnummer}

               </rich:tooltip>

          </a4j:outputPanel>

           

          • 2. Re: rich:tooltip not working in rich:tab facet header (RF4)?
            Heiko Tappe Newbie

            Tom,

             

            I already tried to do so - but without success :-(

            But giving it another try I encountered some "improvement": When a tab isn't active the tooltip shows up when using an outputPanel. But unfortunately not if a tab is active. Which also has the effect of not hiding the tooltip correctly if hovering over another tooltipped tab.

             

            --Heiko

            • 3. Re: rich:tooltip not working in rich:tab facet header (RF4)?
              mn3 Newbie

              This work for me:

               

              <rich:tab>

                   <f:facet name="header">

                        <h:outputText value="headerText" title="toolTip" />

                   </f:facet>

              </rich:tab>

              • 4. Re: rich:tooltip not working in rich:tab facet header (RF4)?
                Jörg E Newbie

                h:outputText has some problem with Tooltip, see https://issues.jboss.org/browse/RF-10833

                 

                For me in RF4.3, the following is working. It is important to work with the ids!

                 

                <rich:tabPanel switchType="ajax">

                     <rich:tab disabled="false">

                 

                     <f:facet name="headerActive">

                            <h:outputText value="Tab Active" id="activeTabText"/>

                            <rich:tooltip target="activeTabText">This is a Active Tab Tooltip</rich:tooltip>          

                     </f:facet>

                 

                     <f:facet name="headerInactive">

                          <h:outputText value="Tab Inactive" id="inActiveTabText"/>

                          <rich:tooltip target="inActiveTabText">This is a Inactive Tab Tooltip</rich:tooltip>          

                     </f:facet>

                 

                     <f:facet name="headerDisabled">

                          <h:outputText value="Tab Disabled" id="disabledTabText"/>

                          <rich:tooltip target="disabledTabText">This is a Disabled Tab Tooltip</rich:tooltip>          

                     </f:facet>

                ...