| Summary: | Used UI to Deploy RUI Project and getting egl_contextRoot is not defined when open generated HTML in Browser | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> | ||||
| Component: | EDT | Assignee: | Yun Feng Ma <mayunf> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | chenzhh | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 201888 [details]
Patch
Changed the context root variable name to "egl__contextRoot". Thanks.
code committed Fixed. Please verify. Thanks. Verified Closing this defect. |
I'm working from a development image. I have all the projects from the eclipse CVS and org.eclipse.edt.runtime.javascript from IBM. I'm trying to create and deploy a simple hello world RUI app. Since I don't have access to any widgets, I'm just using writeStdOut in the start function. I verified the scenario works as desired in RBD. Here are the steps to recreate: 1. Define a tomcat server 2. Create a new web client project 3. Create a new RUI handler 4. Edit the rui handler to remove the UI specific stuff and add writeStdOut handler Greetings type RUIhandler { onConstructionFunction = start, cssFile="css/AgainREDO3.css", title="Greetings"} function start() syslib.writeStdout("This is another test"); end end 5. Open the dd file and specify new target project 6. Verify only one locale setting is selected on RUI Deployment Page ... don't make any changes 7. Save the DD changes without closing file 8. Select the Deploy Descriptor Icon 9. Open html file in Web Browser Using Firebug I get this error message egl_contextRoot is not defined for this section of code in my generated Greetings-es_ES.html file egl.eze$$loadScript = function(url, callback){ var script = document.createElement("script"); script.type = "text/javascript"; if (script.readyState){ //IE script.onreadystatechange = function(){ if (script.readyState == "loaded" || script.readyState == "complete"){ script.onreadystatechange = null; callback(); } }; } else { //Others script.onload = function(){ callback(); }; script.onerror = function(){ console.log("load " + this.src + " fail"); } } script.src = "/" + egl__contextRoot + "/" + url; document.getElementsByTagName("head")[0].appendChild(script); };