Bug 1103762 - Add an option to load Asynchronous Module Definition (AMD) JavaScript from a Content Delivery Network (CDN)
Summary: Add an option to load Asynchronous Module Definition (AMD) JavaScript from a ...
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise Portal Platform 6
Classification: JBoss
Component: Portal
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER03
: 6.2.0
Assignee: Peter Palaga
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-02 13:44 UTC by Peter Palaga
Modified: 2018-10-17 21:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
It is possible to load Asynchronous Module Definition (AMD) JavaScript using the require.js config's paths field. This feature is documented in the Red Hat JBoss Portal 6.2 Administration and Configuration Guide.
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GTNPORTAL-3485 0 Major Resolved Add an option to load AMD JavaScript from a CDN 2016-03-30 01:29:34 UTC

Description Peter Palaga 2014-06-02 13:44:54 UTC
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:

Comment 1 Peter Palaga 2014-06-02 13:45:39 UTC
https://github.com/gatein/gatein-portal/pull/863 was merged in upstream.

Comment 3 Peter Palaga 2014-06-13 13:54:31 UTC
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

Comment 4 Petr Mensik 2014-06-16 11:55:56 UTC
In confirm that portlet meets behavior described in second step of how to reproduce.


Note You need to log in before you can comment on or make changes to this bug.