2 Replies Latest reply on Dec 21, 2011 12:46 PM by anab

    ToolTip direction error

    anab

      Hello,

       

      I am migrating from RF 3.3.1 to 4.0. I'm experiencing an issue with the tooltip component. Specifying "bottom-left" for the direction attribute results in the following error:

       

      javax.el.ELException: Cannot convert bottom-left of type class java.lang.String to class org.richfaces.component.Positioning

       

      Was this attribute implemented in 4.0? Am I doing something wrong?

       

      Thanks,

       

      Ana

        • 1. Re: ToolTip direction error
          feuyeux

          I encountered the same issue by using richfaces4.1.

          What the approach I did is

          remove: direction="bottom-left"

          However, I wish there is a better way to improve it.

          • 2. Re: ToolTip direction error
            anab

            Just in case someone else has the same issue, I've figured it out. In richfaces 4, 'bottom-right' positioning is no longer valid. You have to use 'bottomRight'. I am completely shocked that none of these changes have made it to their online documentation. I have wasted time trying to figure out what was happening with this component. I cannot believe users are expected to go to the API JavaDocs and look through each class for possible attribute values.

             

            If any RichFaces guys read this, please either update the online documentation or remove it. There are way too many components in there with information that has not been updated and is just plain wrong.


            Thanks.