Lutz Ulrich created RF-12841:
--------------------------------

             Summary: Tooltip: JavaScript Error with showDelay and partial 
update
                 Key: RF-12841
                 URL: https://issues.jboss.org/browse/RF-12841
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component-output
    Affects Versions: 4.3.1, 4.3.0.Final
         Environment: Mojarra 2.1.17
            Reporter: Lutz Ulrich
            Priority: Minor


rich:tooltip causes script error when showDelay is used and the tooltip is 
updated due to a JSF request.

Console log of Firefox:
TypeError: tooltip.popup is null

tooltip.popup.show(tooltip.saveShowEvent); in tooltip.js (line 245)


The error comes in all browsers I tested with.


{code}

<a4j:commandLink action="#{richTabMinimizer.toggle}" render="@this">
        <h:graphicImage library="org.richfaces.images"
                name="#{richTabMinimizer.expanded ? 'triangleUp.png' : 
'triangleDown.png'}"/>
                                                
        <rich:tooltip followMouse="false" showDelay="1000">
                #{richTabMinimizer.expanded ? 'close' : 'expand'}
        </rich:tooltip>
</a4j:commandLink>
                                

{code}

(Its a stripped down example. The actual content of my tool-tip holds more 
text.)
Note that my 'richTabMinimizer.toggle' bean toggles some GUI stuff and its 
property 'expanded' is switched from true to false and vice versa.
You may probably replace it with anything to reproduce the error.

Probably the tool-tip tries to show after the HTML elements have already been 
updated.
It's no serious error. Nevertheless, its ugly.

I guess it is not unusual to have a tool-tip (with a showDelay) on a command.
But often, users will click the command just after the mouse entered the 
command.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to