[
https://jira.jboss.org/jira/browse/RF-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12444345#action_12444345
]
Devi Rajshri Menon commented on RF-4476:
----------------------------------------
Workaround does not solve the issue. Using <a4j:loadScript
src="resource://org.ajax4jsf.javascript.PrototypeScript" /> loads prototype
twice if a page has a rich component that uses prototype ( say a
rich:dataTable) and the loadScriptStrategy is set to DEFAULT on web.xml.
Using <a4j:loadScript src="resource://org.ajax4jsf.javascript.PrototypeScript"
/> also loads prototype twice if the loadScriptStrategy is set to ALL on
web.xml.
a4j:loadScript should not load scripts that are loaded by the framework. It
needs to be aware that the framework has loaded them. This is crucial for
scripts that wreck havoc on double load like prototype.js.
> 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
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues