Community
Participate
Working Groups
Build Identifier: 0.7.0.v201109282102 In a new workspace, create an RUIHandler in the default workspace, and the RUI handler will be opened automatically. You'll find the RUIHandler is a blank page even after cleaning workspace & pressing refresh button. Reproducible: Always
Hi, Brian I remember RUI does not support a handler in default package, is that right?
I ran a test in RBD, and you are allowed to define a part in the Default package, and it will render correctly. I think what we are remembering an issue with RBD where someone was trying to import parts from the Default package from a part that was not in the default package. In RBD and EDT, the only parts that can 'import' parts from the default package are those parts that are already defined in the default package. This particular issue appears to be related to the fact that there is no package name, so references to the generated part are incorrect: egl.rootHandler = new egl..DefaultTest(); This should probably be routed to deployment.
Change the owner to Scott because it is the generated js problem.
(In reply to comment #3) > Change the owner to Scott because it is the generated js problem. Set the component to the JSGen according to the comment 3.
Think this needs to be fixed for 0.7. If the fix is too risky, we should at least prevent the developer from creating handlers/widgets in the default package (so, don't let developer complete the wizard if the package name is not set). We should only do this if the real problem cannot be resolved for 0.7. Also, not sure it's the same issue, but if you have a widget defined in the default package and try to reference that widget from a handler defined in another package, you get a compile error in the handler (The type myFirstWidgtet cannot be resolved.)
It is not valid to reference a part in the default package from a non-default package: http://publib.boulder.ibm.com/infocenter/rbdhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.egl.lr.doc%2Ftopics%2Fregl_core_package.html
Created attachment 206504 [details] fix
Fix both problem for html gen and js gen when package name is empty.
Verified in 0.7.0.v201111071403.