Thanks for the reply, Rick.
I think I'm already doing what you suggest. Could you look at the attached screen shot of my deployment descriptor and see if it looks right to you?
Here's what I'm doing in code -
In my MainHandler, I make a type reference to my LoginHandler, like so:
loginWidget LoginHandler;
In my start() function of my MainHandler, I do this:
DynamicLoader.loadDoneListeners ::= processLoadDone;
I have a button in my MainHandler that when clicked, does this:
DynamicLoader.loadHandler("ui.LoginHandler");
And my processLoadDone function looks like this
function processLoadDone(event HandlerLoadedEvent in)
SysLib.writeStdErr("in processLoadDone");
// access a function in the loaded handler
theHandler any = event.theHandler;
// the use of a handler (or other container) of type any requires
// a type reference so that your code can directly access a field
// or function that is embedded in that container
if(theHandler isa LoginHandler)
if(loginWidget == null)
loginWidget = new LoginHandler{};
loginWidget.ui{layoutData = new GridLayoutData{row = 1, column = 2}};
content.children =[loginWidget.ui];
SysLib.writeStdout("loaded loginHandler");
return;
end
end
end
All seems to work in debug or preview, but I don't think that's a valid test in the case of Dynamic Loading. Does this look right to you?
Thanks again,
Kendall
Kendall.Coolidge