[richfaces-issues] [JBoss JIRA] (RF-11975) Prototype script error in Portal

Ken Finnigan (JIRA) jira-events at lists.jboss.org
Fri Feb 10 08:58:48 EST 2012


Ken Finnigan created RF-11975:
---------------------------------

             Summary: Prototype script error in Portal
                 Key: RF-11975
                 URL: https://issues.jboss.org/browse/RF-11975
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: third-party
    Affects Versions: 3.3.3.Final
         Environment: GateIn v3.2
JBoss PortletBridge v2.2.0.Final
Firefox
            Reporter: Ken Finnigan
            Priority: Minor


When a user wants to add two separate portlets to the same portal page, with both portlets using RichFaces components, the JBoss PortletBridge needs to have the context parameter "org.jboss.portletbridge.WRAP_SCRIPTS" set to true.  This wraps the RichFaces JavaScript files with a check to prevent the same file being loaded twice on the one page, as there are two portlets with RichFaces scripts being loaded.

In this situation, the prototype.js script (or framework_pack.js when LoadScriptStrategy is ALL) returns "$A() is not defined" within Firefox, but in Chrome and IE it works fine.

This JS error in Firefox can be resolved by moving the $A function to the very top of the file to ensure it is defined when needed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list