]
Nick Belaevski updated RF-8174:
-------------------------------
Component/s: portal
Fix Version/s: Future
Assignee: Nick Belaevski
multiple inclusion of menu.js Script in portlet environment results
in javascript errors when selecting first menu
------------------------------------------------------------------------------------------------------------------
Key: RF-8174
URL:
https://jira.jboss.org/jira/browse/RF-8174
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-menu, portal
Affects Versions: 3.3.2.SR1
Environment: Liferay Portal 5.2.3, JBoss 5.1.0.GA, Richfaces 3.3.2.SR1
Reporter: Andreas Schank
Assignee: Nick Belaevski
Fix For: Future
When including menus in more than one portlet the menu.js file will be loaded more than
once and the Layers will be overwritten.
There could be a test to check if the Layers are already existing before initializing
them again:
adding the check if RichFaces.Menu.Layers already exists in menu.js (and in that case not
reinitializing RichFaces.Menu.Layers) works for me.
Since it is not possible (at least in my environment with Liferay 5.2.3, JBoss portal
bridge 1.0.0.CR2 and Richfaces 3.3.2.SR1) to work with ScriptLoadingStrategy NONE (which
seems to be totally ignored, see issue PBR-63) this is a must-have for using RichFaces
menus in portlet development.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: