Bug 797977

Summary: EPP is handling javascript with jquery differently without the exo.product.developing parameter
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Viliam Rockai <vrockai>
Component: PortalAssignee: Peter Palaga <ppalaga>
Status: ASSIGNED --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.2.0.GACC: epp-bugs, pjha, theute, tkyjovsk
Target Milestone: ---   
Target Release: 5.2.x   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Gatein skin war file with javascript none

Description Viliam Rockai 2012-02-27 17:19:15 UTC
Description of problem:
JQuery javascript is invoked fine with the exo.product.developing=true parameter, but doesn't work without it.

How to reproduce:
Deploy the attached war file. It contains sample skin extended with two javascript file: jquery and test javascript file. Those files are defined in the gatein-resources.xml file. In the test javascript file, the alert is executed from the jquery environment. If you start the EPP with -Dexo.product.developing=true parameter, everything works as expected, but if you avoid the parameter, you won't be even able to click on the Sign in link (because of javascript errors).

Note: The javascript is executed (if dev parameter == true) even if the skin is not the current skin.

Comment 1 Viliam Rockai 2012-02-27 17:24:41 UTC
Created attachment 566112 [details]
Gatein skin war file with javascript