4 Replies Latest reply on May 26, 2010 2:25 PM by Rafael de Carvalho

    rich:toolTip on datatable footer

    Rafael de Carvalho Newbie

      Hello there!

       

      Sorry if there are duplicates of this post, but I'm using a rich:toolTip over all cells on my rich:column, but it don't works if it is insite my <f:facet name="footer">.

       

      There are some limitations to this case of use?

       

      Thanks in advance.

        • 1. Re: rich:toolTip on datatable footer
          Nick Belaevski Master

          Hi,

           

          Can you please post page code?

          • 2. Re: rich:toolTip on datatable footer
            Rafael de Carvalho Newbie

                                <rich:dataTable>

             

                           .......

             

                                     <rich:column  styleClass="blueB">
                                            <f:facet name="header">#{messages['stk.blend']}</f:facet>
                                            <gap:pctOutput valor="#{stk.pct}" />
                                                <rich:toolTip
                                                    followMouse="true"
                                                    direction="top-right" showDelay="100"
                                                    styleClass="tooltip">
                                                   
                                                    <h:outputText
                                                        value="#{messages[stk.rel]}"
                                                        styleClass="center-bold" /><br />
                                                   
                                                    <rich:dataTable
                                                        value="#{stk.sps"
                                                        var="_sge"
                                                        footerClass="footer-matriz">
                                                       
                                                        <rich:column styleClass="center">
                                                            <f:facet name="header">#{messages['t0']}</f:facet>
                                                            <h:outputText value="#{_sge.scaleAtT0.tag}" />
                                                        </rich:column>
                                                       
                                                        <rich:column styleClass="center">
                                                            <f:facet name="header">
                                                                <h:outputText value="-->" />
                                                            </f:facet>
                                                            <h:outputText value="#{_sge.qtd}"/>
                                                        </rich:column>
                                                       
                                                        <rich:column styleClass="center">
                                                            <f:facet name="header">#{messages['t1']}</f:facet>
                                                            <h:outputText value="#{_sge.scaleAtT1.tag}" />
                                                        </rich:column>
                                                       
                                                    </rich:dataTable>
                                                   
                                                </rich:toolTip>
                                            <f:facet name="footer">
                                                <gap:pctOutput valor="#{stk.pctAll}" />
                                                <rich:toolTip
                                                    id="text-1"
                                                    followMouse="true"
                                                    direction="top-right" showDelay="100"
                                                    styleClass="tooltip">
                                                    <h:outputText value="#{messages['stk.relative-values']}: #{stk.relativeAll}" />
                                                </rich:toolTip>
                                            </f:facet>
                                           
                                           
                                        </rich:column> ... </rich:dataTable>

            • 3. Re: rich:toolTip on datatable footer
              Ilya Shaikovsky Master

              at first facet - do not supports more than one child component. so wrap the footer components with outputPanel for example and tooltip will be attached to it.

              • 4. Re: rich:toolTip on datatable footer
                Rafael de Carvalho Newbie

                Thanks, Ilya. Problem solved.