[richfaces-issues] [JBoss JIRA] Updated: (RF-4476) Prototype.js loaded twice when using a4j:loadScript together with components which requests prototype too.

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Mon Sep 15 11:46:21 EDT 2008


     [ https://jira.jboss.org/jira/browse/RF-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski updated RF-4476:
-------------------------------

    Fix Version/s: 3.3.0
         Assignee: Nick Belaevski


> Prototype.js loaded twice when using a4j:loadScript together with components which requests prototype too.
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: RF-4476
>                 URL: https://jira.jboss.org/jira/browse/RF-4476
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>            Reporter: josef adamcik
>            Assignee: Nick Belaevski
>             Fix For: 3.3.0
>
>
> When I use <a4j:loadScript src="resource://prototype.js" /> (mentioned in demo application http://livedemo.exadel.com/richfaces-demo/richfaces/script.jsf?c=loadScript&tab=usage ) and some component loads Prototype too, it results in two different script urls (and two script tags in document header):
> /a4j/g/3_2_2.GAorg.ajax4jsf.javascript.PrototypeScript.faces
> and:
> /a4j/g/3_2_2.GAprototype.js.faces
> 	
> -> script is loaded downloaded and included twice.
> Commonly it doesn't cause problem, but sometimes it can broke prototype in IE 6 (not tested other versions). (There was problem with suggestion box throwing errors on some methods from script.aculo.us in my case.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list