<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Highcharts is not defined in Liferay 7 portlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112119047" />
  <subtitle>Highcharts is not defined in Liferay 7 portlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112119047</id>
  <updated>2026-04-04T10:49:45Z</updated>
  <dc:date>2026-04-04T10:49:45Z</dc:date>
  <entry>
    <title>RE: Highcharts is not defined in Liferay 7 portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113647068" />
    <author>
      <name>Fazar Nugroho</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113647068</id>
    <updated>2019-05-16T03:52:32Z</updated>
    <published>2019-05-16T03:52:32Z</published>
    <summary type="html">Hai,&lt;br /&gt;I know you said it solved with different plugin. but if you wanna try, I got the same issue using Highcharts v7.1.1&lt;br /&gt;I try using v5.0.14 and its working fine.</summary>
    <dc:creator>Fazar Nugroho</dc:creator>
    <dc:date>2019-05-16T03:52:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: Highcharts is not defined in Liferay 7 portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112182279" />
    <author>
      <name>Javier Solana</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112182279</id>
    <updated>2019-01-30T14:51:21Z</updated>
    <published>2019-01-30T14:51:21Z</published>
    <summary type="html">Thanks David for taking your time on responding.&lt;br /&gt;Unfortunatelly, I could not make it work... but honestly I think it is a matter of the Highcharts files themselves, since I have succesfully imported JS in the same portlet.&lt;br /&gt;In the end, I found &lt;a href="https://codepen.io/vajkri/pen/NxzZwL"&gt;this solution based on CSS&lt;/a&gt; animations that solved my problem. &lt;br /&gt;Thanks again.</summary>
    <dc:creator>Javier Solana</dc:creator>
    <dc:date>2019-01-30T14:51:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Highcharts is not defined in Liferay 7 portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112127377" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112127377</id>
    <updated>2019-01-24T17:28:50Z</updated>
    <published>2019-01-24T17:28:50Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Javier Solana:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;Don't know why you say that... &lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;
  &lt;br /&gt; The link uses the following syntax:&lt;/p&gt;
&lt;pre&gt;
&amp;quot;com.liferay.portlet.header-portal-javascript=/o/dynamic-data-mapping-web/js/custom_fields.js&amp;quot;&lt;/pre&gt;
&lt;p&gt;The /o/dynamic-data-mapping-web is going through /o for OSGi module
  access, /dynamic-data-mapping-web for the web context that is serving
  the javascript, finally the /js/custom_fields.js then is the
  javascript being served. By using the full path this way, the browser
  is able to access the javascript the module is attempting to serve.&lt;/p&gt;
&lt;p&gt;Your code excludes the preliminary stuff and goes straight to the
  /js/highcharts.js; when the browser submits this request, it is
  getting the 404 on the scripts because they can't load.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-01-24T17:28:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Highcharts is not defined in Liferay 7 portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112126365" />
    <author>
      <name>Javier Solana</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112126365</id>
    <updated>2019-01-24T16:04:02Z</updated>
    <published>2019-01-24T16:04:02Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;David H Nebinger:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;Clearly I don't think you actually looked at the reference link.&lt;/p&gt;
      &lt;p&gt;The javascript paths are relative to the portlet. These
        /js/highcharts.js paths are likely not resolving to anything.&lt;/p&gt;
      &lt;p&gt;So highcharts is not loading and you get the Highcharts is not
        defined message because it is not there.&lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;Don't know why you say that... &lt;/p&gt;
&lt;p&gt;I looked at the link you shared indeed. This is reason why I tried to
  create local files inside the portlet and include them as the link did. &lt;/p&gt;
&lt;p&gt;This actually works, because I've tried to declare some variables at
  the end of these created files and they are loaded correctly and I can
  access them.&lt;/p&gt;
&lt;p&gt;So maybe I am not loading the correct JS files... &lt;br /&gt;  &lt;/p&gt;</summary>
    <dc:creator>Javier Solana</dc:creator>
    <dc:date>2019-01-24T16:04:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: Highcharts is not defined in Liferay 7 portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112126021" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112126021</id>
    <updated>2019-01-24T15:53:51Z</updated>
    <published>2019-01-24T15:53:51Z</published>
    <summary type="html">&lt;p&gt;Clearly I don't think you actually looked at the reference link.&lt;/p&gt;
&lt;p&gt;The javascript paths are relative to the portlet. These
  /js/highcharts.js paths are likely not resolving to anything.&lt;/p&gt;
&lt;p&gt;So highcharts is not loading and you get the Highcharts is not
  defined message because it is not there.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-01-24T15:53:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: Highcharts is not defined in Liferay 7 portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112125688" />
    <author>
      <name>Javier Solana</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112125688</id>
    <updated>2019-01-24T15:48:19Z</updated>
    <published>2019-01-24T15:48:19Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;David H Nebinger:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;blockquote&gt;
        &lt;div class="quote-title"&gt;Javier Solana:&lt;/div&gt;
        &lt;div class="quote"&gt;
          &lt;div class="quote-content"&gt;
            &lt;p&gt;As I said, it seems that the initial &lt;/p&gt;
            &lt;p&gt;
              &lt;span style="color: rgb(0,0,255);"&gt;&amp;lt;script
                src=&amp;quot;https://code.highcharts.com/highcharts.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
                &amp;lt;script
                src=&amp;quot;https://code.highcharts.com/modules/exporting.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
                &amp;lt;script src=&amp;quot;https://code.highcharts.com/modules/export-data.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p&gt;in init.jsp is not working...&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
      &lt;p&gt;That is not how you load javascript in the portal. init.jsp is
        used to declare JSP globals, not HTML fragment script includes.&lt;/p&gt;
      &lt;p&gt;See &lt;a
        href="https://github.com/liferay/liferay-portal/blob/7.0.x/modules/apps/forms-and-workflow/dynamic-data-lists/dynamic-data-lists-web/src/main/java/com/liferay/dynamic/data/lists/web/internal/portlet/DDLDisplayPortlet.java#L71"&gt;https://github.com/liferay/liferay-portal/blob/7.0.x/modules/apps/forms-and-workflow/dynamic-data-lists/dynamic-data-lists-web/src/main/java/com/liferay/dynamic/data/lists/web/internal/portlet/DDLDisplayPortlet.java#L71&lt;/a&gt;
        for a reference.&lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;
  &lt;br /&gt; Thanks for the quick response David, but I am facing the same
  error. I have changed the way that js is included following your link:&lt;/p&gt;
&lt;p&gt;
  &lt;span
    style="color: rgb(0,0,255);"&gt;&amp;quot;com.liferay.portlet.header-portlet-javascript=/js/highcharts.js&amp;quot;,&lt;br /&gt;
    &amp;quot;com.liferay.portlet.header-portlet-javascript=/js/exporting.js&amp;quot;,&lt;br /&gt; &amp;quot;com.liferay.portlet.header-portlet-javascript=/js/export-data.js&amp;quot;,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;What I've done is to copy/paste the JS content taken from the web
  into files created in my local file system. Is this right?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Still the same problem &lt;span style="color: rgb(255,0,0);"&gt;Uncaught
    ReferenceError: Highcharts is not defined&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Javier Solana</dc:creator>
    <dc:date>2019-01-24T15:48:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: Highcharts is not defined in Liferay 7 portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112121683" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112121683</id>
    <updated>2019-01-24T14:40:19Z</updated>
    <published>2019-01-24T14:40:19Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Javier Solana:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;As I said, it seems that the initial &lt;/p&gt;
      &lt;p&gt;
        &lt;span style="color: rgb(0,0,255);"&gt;&amp;lt;script
          src=&amp;quot;https://code.highcharts.com/highcharts.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
          &amp;lt;script
          src=&amp;quot;https://code.highcharts.com/modules/exporting.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
          &amp;lt;script src=&amp;quot;https://code.highcharts.com/modules/export-data.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
      &lt;p&gt;in init.jsp is not working...&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;That is not how you load javascript in the portal. init.jsp is used
  to declare JSP globals, not HTML fragment script includes.&lt;/p&gt;
&lt;p&gt;See &lt;a
  href="https://github.com/liferay/liferay-portal/blob/7.0.x/modules/apps/forms-and-workflow/dynamic-data-lists/dynamic-data-lists-web/src/main/java/com/liferay/dynamic/data/lists/web/internal/portlet/DDLDisplayPortlet.java#L71"&gt;https://github.com/liferay/liferay-portal/blob/7.0.x/modules/apps/forms-and-workflow/dynamic-data-lists/dynamic-data-lists-web/src/main/java/com/liferay/dynamic/data/lists/web/internal/portlet/DDLDisplayPortlet.java#L71&lt;/a&gt;
  for a reference.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-01-24T14:40:19Z</dc:date>
  </entry>
  <entry>
    <title>Highcharts is not defined in Liferay 7 portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112119046" />
    <author>
      <name>Javier Solana</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112119046</id>
    <updated>2019-01-24T13:11:22Z</updated>
    <published>2019-01-24T13:11:22Z</published>
    <summary type="html">&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I've been struggling for days with this issue... I am trying to use
  Higcharts in a portlet (thing that I did in the past already...), but
  it seems that I cannot manage to succesfully load the needed javascript.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am using liferay-ce-portal-7.0-ga3.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am importing the js at init.jsp:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;&amp;lt;script
    src=&amp;quot;https://code.highcharts.com/highcharts.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;script
    src=&amp;quot;https://code.highcharts.com/modules/exporting.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;https://code.highcharts.com/modules/export-data.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;&amp;lt;%@ taglib
    uri=&amp;quot;http://java.sun.com/jsp/jstl/core&amp;quot;
    prefix=&amp;quot;c&amp;quot; %&amp;gt;&lt;br /&gt; &amp;lt;%@ taglib
    uri=&amp;quot;http://java.sun.com/portlet_2_0&amp;quot;
    prefix=&amp;quot;portlet&amp;quot; %&amp;gt;&lt;br /&gt; &amp;lt;%@ taglib
    uri=&amp;quot;http://liferay.com/tld/aui&amp;quot; prefix=&amp;quot;aui&amp;quot;
    %&amp;gt;&lt;br /&gt; &amp;lt;%@ taglib
    uri=&amp;quot;http://liferay.com/tld/portlet&amp;quot;
    prefix=&amp;quot;liferay-portlet&amp;quot; %&amp;gt;&lt;br /&gt; &amp;lt;%@ taglib
    uri=&amp;quot;http://liferay.com/tld/theme&amp;quot;
    prefix=&amp;quot;liferay-theme&amp;quot; %&amp;gt;&lt;br /&gt; &amp;lt;%@ taglib
    uri=&amp;quot;http://liferay.com/tld/ui&amp;quot;
    prefix=&amp;quot;liferay-ui&amp;quot; %&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;&amp;lt;liferay-theme:defineObjects /&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;&amp;lt;portlet:defineObjects /&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;&amp;lt;script
    type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;     var categories =
    [&amp;quot;36&amp;quot;, &amp;quot;37&amp;quot;, &amp;quot;38&amp;quot;, &amp;quot;39&amp;quot;, &amp;quot;40&amp;quot;];&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;    var valMale       = [5, 5, 6,
    5, 4];&lt;br /&gt;     var valFemale = [5, 3, 5, 6, 5];&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Then, defining the corresponding div at view.jsp:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;&amp;lt;%@ include
    file=&amp;quot;/init.jsp&amp;quot; %&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;&amp;lt;div id=&amp;quot;container&amp;quot;
    style=&amp;quot;min-width: 310px; max-width: 800px; height: 400px;
    margin: 0 auto&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;And finally, I have put the corresponding JS where I cannot access
  the Highchart variable that is suposed to be loaded:&lt;/p&gt;
&lt;p&gt;js/progressFeedback.js&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;$(document).ready(function () {&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;    &lt;br /&gt;    
    Highcharts.chart('container', {&lt;br /&gt;         credits: {&lt;br /&gt;    
              enabled: false&lt;br /&gt;           },&lt;br /&gt;         chart:
    {&lt;br /&gt;             type: 'bar'&lt;br /&gt;         },&lt;br /&gt;        
    title: {&lt;br /&gt;             text: 'Example of title'&lt;br /&gt;        
    },&lt;br /&gt;         subtitle: {&lt;br /&gt;             text: ''&lt;br /&gt;      
      },&lt;br /&gt;         xAxis: [{&lt;br /&gt;             categories:
    categories,&lt;br /&gt;             reversed: false,&lt;br /&gt;            
    labels: {&lt;br /&gt;                 step: 1,&lt;br /&gt;                
    style: { &amp;quot;color&amp;quot;: &amp;quot;#666666&amp;quot;, &amp;quot;cursor&amp;quot;:
    &amp;quot;default&amp;quot;, &amp;quot;fontSize&amp;quot;: &amp;quot;9px&amp;quot; }&lt;br /&gt;  
              }&lt;br /&gt;         }, { // mirror axis on right side&lt;br /&gt;  
              opposite: true,&lt;br /&gt;             reversed: false,&lt;br /&gt;  
              categories: categories,&lt;br /&gt;             linkedTo:
    0,&lt;br /&gt;             labels: {&lt;br /&gt;                 step: 1,&lt;br /&gt;
                    style: { &amp;quot;color&amp;quot;: &amp;quot;#666666&amp;quot;,
    &amp;quot;cursor&amp;quot;: &amp;quot;default&amp;quot;, &amp;quot;fontSize&amp;quot;:
    &amp;quot;9px&amp;quot; }&lt;br /&gt;             }&lt;br /&gt;         }],&lt;br /&gt;      
      yAxis: {&lt;br /&gt;             title: {&lt;br /&gt;                 text:
    'Age'&lt;br /&gt;             },&lt;br /&gt;             labels: {&lt;br /&gt;        
            formatter: function () {&lt;br /&gt;                     return
    Math.abs(this.value);&lt;br /&gt;                 }&lt;br /&gt;            
    }&lt;br /&gt;         },&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;        plotOptions: {&lt;br /&gt;      
          series: {&lt;br /&gt;                 stacking: 'normal'&lt;br /&gt;      
          }&lt;br /&gt;         },&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;        tooltip: {&lt;br /&gt;          
      formatter: function () {&lt;br /&gt;                 return '&amp;lt;b&amp;gt;'
    + this.series.name + ', age ' + this.point.category +
    '&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;' +&lt;br /&gt;                     'Population: ' +
    Highcharts.numberFormat(Math.abs(this.point.y), 0);&lt;br /&gt;          
      }&lt;br /&gt;         },&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;        series: [{&lt;br /&gt;          
      name: 'Male',&lt;br /&gt;             data: valMale&lt;br /&gt;         },
    {&lt;br /&gt;             name: 'Female',&lt;br /&gt;             data:
    valFemale&lt;br /&gt;         }]&lt;br /&gt;     });&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;});&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;And, finally, here is my @Component declaration at the portlet.java&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;@Component(&lt;br /&gt;     immediate =
    true,&lt;br /&gt;     property = {&lt;br /&gt;       
     &amp;quot;com.liferay.portlet.display-category=category.sample&amp;quot;,&lt;br /&gt;
          
     &amp;quot;com.liferay.portlet.footer-portlet-javascript=/js/progressFeedback.js&amp;quot;,&lt;br /&gt;
            &amp;quot;com.liferay.portlet.instanceable=true&amp;quot;,&lt;br /&gt;   
         &amp;quot;javax.portlet.display-name=MyFeedback
    Portlet&amp;quot;,&lt;br /&gt;       
     &amp;quot;javax.portlet.init-param.template-path=/&amp;quot;,&lt;br /&gt;       
     &amp;quot;javax.portlet.init-param.view-template=/view.jsp&amp;quot;,&lt;br /&gt;
          
     &amp;quot;javax.portlet.resource-bundle=content.Language&amp;quot;,&lt;br /&gt;
          
     &amp;quot;javax.portlet.security-role-ref=power-user,user&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;     service = Portlet.class&lt;br /&gt; )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The error I get in Chrome is:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(255,0,0);"&gt;Uncaught ReferenceError: Highcharts
    is not defined&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have tried this with no success: &lt;a href="https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-0/liferay-amd-module-loader"&gt;https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-0/liferay-amd-module-loader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;As I said, it seems that the initial &lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;&amp;lt;script
    src=&amp;quot;https://code.highcharts.com/highcharts.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;script
    src=&amp;quot;https://code.highcharts.com/modules/exporting.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;script src=&amp;quot;https://code.highcharts.com/modules/export-data.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;in init.jsp is not working...&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;</summary>
    <dc:creator>Javier Solana</dc:creator>
    <dc:date>2019-01-24T13:11:22Z</dc:date>
  </entry>
</feed>
