5 Replies Latest reply on Oct 27, 2009 8:20 AM by ilya_shaikovsky

    rich:toolTip and IE8

    merlin-hst

      Hi,

      I've just figured out, that the rich:toolTip from the 3.3.2.SR1 release doesn't work in the IE8. Even not in the compatibility view. I'm always getting a JS error and the tooltip is not rendered.

      <style>
       .tooltip_body_class {
       margin: 0px;
       padding: 0px;
       }
       .tooltip_class {
       border-style:solid;
       border-width:0px;
       background-color:#f3f3f3
       }
      </style>
      
      <t:panelGrid columns="2" border="0" cellpadding="5" cellspacing="0">
      ...
      <rich:panel bodyClass="tooltip_body_class" styleClass="tooltip_class">
       <t:inputText id="field_123" forceId="true"value="123" required="false" tabindex="10">
       <f:validateLongRange minimum="0" maximum="360" />
       <rich:toolTip>
       <span style="white-space:nowrap">
       <h:outputText value="abc">
       </span>
       </rich:toolTip>
      </t:inputText>
      <t:graphicImage width="5" url="/image/forall/dotTrans.gif"/>
      <t:graphicImage url="/image/forall/roof_orientation.jpg" id="roof_orientation_image"/>
      </rich:panel>
      



      The JS error is:

      Webpage error details
      
      User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
      Timestamp: Wed, 21 Oct 2009 15:08:52 UTC
      
      
      Message: Object doesn't support this property or method
      Line: 3
      Char: 741
      Code: 0
      URI: http://localhost:8080/webportal/a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/tooltip.js
      


      Lothar

        • 1. Re: rich:toolTip and IE8
          juangon

          I always use rich:toolTip with for attribute like this:

          <h:graphicImage id="imageId" ...>
          .
          .
          </h:graphicImage>
          
          <rich:toolTip for="imageId" mode="client"..>.
          ..
          </rich:toolTip>


          And works everywhere (even datatables etc).

          Hope this helps...

          • 2. Re: rich:toolTip and IE8
            juangon

            Of course it works in IE 8 too...

            • 3. Re: rich:toolTip and IE8
              ilya_shaikovsky

               

               <h:panelGrid columns="1">
               <rich:panel>
               <h:inputText id="field_123" value="123"
               required="false" tabindex="10">
               <f:validateDoubleRange />
               <rich:toolTip>
               <span style="white-space: nowrap"> <h:outputText value="abc"/></span>
               </rich:toolTip>
               </h:inputText>
               </rich:panel>
              </h:panelGrid>
              
              
              chjecked in IE8 and works.
              


              • 4. Re: rich:toolTip and IE8
                merlin-hst

                Strange. I really can't get it work. I always get the same JS error. But what makes me really wonder on another site which uses the same page template it works as it should be - even in the IE8.

                Here's the working code:

                <style>
                ...
                </style>
                
                <t:dataTable ..>
                
                 <h:column>
                 <f:facet name="header">
                 <h:outputText .../>
                 </f:facet>
                 <rich:panel ...>
                 <h:outputText ...>
                 <rich:toolTip>
                 <span style="white-space:nowrap">
                 <h:outputText ../>
                 </span>
                 </rich:toolTip>
                 </rich:panel>
                 </h:column>
                
                </t:dataTable>
                


                Very mysterious ;)

                Lothar

                • 5. Re: rich:toolTip and IE8
                  ilya_shaikovsky

                  could you provide complete sample to just run and investigate? Still can't get in local samples.