Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-5817

failed to load a javascript file via lang-addon.xml in Liferay

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 10.0.0
    • None

      Steps to Reproduce

      <language-addon>
          <addon-name>custom</addon-name>
          <version>1.0</version>
          <language-name>xul/html</language-name>
          <depends>zul</depends>
      
          <javascript src="~./js/zk-5815.js" />
      </language-addon>
      
      1. a WAR contains a lang-addon.xml to load a javascript

      Current Result

      it loads an empty file content

      Expected Result

      load the js successfully

      Debug Information

      Workaround

      • the following code can be loaded correctly
            <javascript>
                zk.afterResize(function() {
                    if (!zk.portlet2Data)
                    return;
                    delete zk.portlet2Data;
                });
            </javascript>
        

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: