0 Replies Latest reply on Dec 4, 2014 4:09 AM by midhunravikumar

    Remote JS files given as portlet dependencies in gatein-resources.xml not working

    midhunravikumar

      I want to use http://maps.google.com/maps/api/js in a portlet having name Banner

       

       

      for that in gatein-resources.xml i have declaired it as a shaired resource with name googlemap and add googlemap as dependencies of Banner portlet

       

          <scripts>

              <name>googlemap</name>

              <url>http://maps.google.com/maps/api/js</url>

          </scripts>

       

        

          <portlet>

              <name>Banner</name>

              <scripts>

                   <depends>

                        <scripts>googlemap</scripts>

                   </depends>

              </scripts>

          </portlet>

       

      But while loading Banner portlet,google map is not showing.

       

      If i am declaring http://maps.google.com/maps/api/js  file inside script tag in the jsp file used in Banner portlet, Google map is showing.

       

      Can anybody explain why googlemap js is not loading when declared it inside gatein-resources.xml. All the other scripts reside in local system itself declared in gateing-resources are working fine.