Description of problem: Add an option to load AMD JavaScript from a CDN. This can be done using the require.js config's paths field. Cloned from https://issues.jboss.org/browse/GTNPORTAL-3485 so that it gets QA'd properly Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
https://github.com/gatein/gatein-portal/pull/863 was merged in upstream.
Steps to reproduce: (1) build arcgis-gears-portlet cd ~/scratch wget https://github.com/jboss-developer/jboss-portal-quickstarts/blob/6.2.x-develop/src/build/settings-for-contributors.xml git clone https://github.com/ppalaga/arcgis-gears-portlet.git cd arcgis-gears-portlet git checkout GTNPORTAL-3485 mvn clean install -s ../settings-for-contributors.xml (2) deploy arcgis-gears-portlet.war, add to a page, open the page Expected in JBoss Portal 6.3.0.ER3: * The map in the portlet is displayed * Open the devconsole in the browser (F12 in the browser) and ensure that * There are no loading errors * Some CSS and JavaScript resources are loaded from http://js.arcgis.com as declared in https://github.com/ppalaga/arcgis-gears-portlet/blob/GTNPORTAL-3485/src/main/webapp/WEB-INF/gatein-resources.xml#L24-L34 and https://github.com/ppalaga/arcgis-gears-portlet/blob/GTNPORTAL-3485/src/main/webapp/css/arcgis-gears-portlet.css#L1-L2
In confirm that portlet meets behavior described in second step of how to reproduce.
This feature was documented in https://docs.jboss.org/author/display/GTNPORTAL39/Native+AMD+Modules#NativeAMDModules-NativeAMDModuleshostedonCDN