ICEfaces
  1. ICEfaces
  2. ICE-4136

JavaScript error with jQuery on Liferay 5.2.1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.8RC1
    • Fix Version/s: 1.8RC2, 1.8
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      portals portlets Liferay

      Description

      Firebug reports the following error when an ICEfaces portlet is loaded into a portal page under Liferay 5.2.1:

      Class is not a constructor
      http://localhost:8080/chat-portlet/javascript.js?browserId=firefox&minifierType=js&t=1234462600000
      Line 1

      The forum poster notes more information:

      "Some liferay portlets load javascript code delayed, which containts the following code "new Class({...})". This actually fails with "Class is not a constructor" error, if the icefaces javascript code is loaded before hand."

      The error only occurs when you are actually signed in as an registered user. Using the portlet as a "guest", it doesn't occur. The likely reason for the different behaviour is that when you are signed in, additional JavaScript is used to allow the registered user more features (add portlets to the page, drag them around). It appears that we may have a conflict occurring with this additional code.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: