You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Konrad Steinmuller (JIRA)" <de...@tapestry.apache.org> on 2008/01/27 14:04:34 UTC

[jira] Created: (TAPESTRY-2093) Rollover Preloaded Image Mixup when updating components via DirectLink async

Rollover Preloaded Image Mixup when updating components via DirectLink async
----------------------------------------------------------------------------

                 Key: TAPESTRY-2093
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2093
             Project: Tapestry
          Issue Type: Bug
          Components: Framework, JavaScript
    Affects Versions: 4.1.3
         Environment: Tomcat 6.0.13

            Reporter: Konrad Steinmuller
            Priority: Minor


If a DirectLink updates a component containing a Rollover via an ajax updateComponents action, then if there are other rollovers in the page, the order of the PreLoaded images can get changed. The other Rollover images that still reference the old tapestry.preload[i] order and hence display an incorrect image when the mouse rolls over.

This appears to be an issue with the dojo, but I don't know enough to track it down exactly. After the asynchronous component update, the preloaded images gets recalculated, but only the images required by the component being updated appear to be included.

There is a workaround for this quite annoying effect. Create a component that is placed in the border of every page. I call this component 

<span jwcid="rolloverLoader@RolloverLoader" /> 

In this component I include every rollover I intend to use in my site. 

Whenever I then update a component in my site, I will also update this component first.

ie 
updateComponents="ognl: {'rolloverLoader', shoppingCart}"

Unfortunately I cannot tell whether or not this is a Dojo error, or a tapestry error. Nonetheless I hope that this helps somebody out trying to work around this issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org