[richfaces-issues] [JBoss JIRA] Created: (RF-8174) multiple inclusion of menu.js Script in portlet environment results in javascript errors when selecting first menu

Andreas Schank (JIRA) jira-events at lists.jboss.org
Wed Dec 2 05:14:29 EST 2009


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
    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


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: 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