| Summary: | Basic Handler produces invalid JS code | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> |
| Component: | EDT | Assignee: | Project Inbox <edt.javascriptgen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | blocker | ||
| Priority: | P3 | CC: | greer |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Kathy, Joe found -- and fixed -- this today; please try it again and re-open if necessary...thanks. Verified compile error gone with 0.7.0.v201109080902.
However, when I attemp to run it I get
egl.egl.debug is undefined
here
egl.startupInit = function() {
egl.load(RUI_DEPENDENT_JAVASCRIPT_FILES, function(){
egl.localeInfo = {locale : "en_US", nlsCode : "ENU", shortMask : "MM/dd/yyyy", mediumMask : "MM-dd-yyyy", longMask : "MM-dd-yyyy", currencySymbol : "$", decimalSeparator : ".", groupingSeparator : ","};
try {
egl.rootHandler = new egl.client.Hello();
egl.rootHandler.setParent(egl.Document);
egl.startup();
} catch (e) {
if (e instanceof egl.egl.debug.DebugTermination) {
if (e.msg) egl.println(e.msg);
} else {
Am I missing a plugin or something? Habitually doing the worng thing? Or do I get to write up a separate defect? If it is a defect, is against generation?
Verified with 0.7.0.v201109080902. Created Bug 357128 for issue mentioned in Comment 2 Closing this defect. |
Create a Web project MiniHandler ===== Create a basic handler ==== package client; handler crudeHandler function actionOne() syslib.writestdout("this is actionOne"); end function actionTwo() syslib.writestdout("this is actionTwo"); end end ======= Create a rui handler ============== package client; handler Hello type RUIhandler {initialUI = [ ],onConstructionFunction = start, cssFile="css/MiniHandler.css", title="Hello"} function start() trHandler crudeHandler = new crudeHandler; syslib.writestdout(" I'm here "); trHandler.actionOne(); end end Deploy the project and open crudeHandler.js in the deployed project you will see these errors Syntax error on token ",", ~ expected after this token Syntax error on token ")", delete this token This is required for the test framework