I can easily call my modules-object by property-injection from
a root-applications Handler.
Is there a possibility to render a modules view/viewlet?
Something like ... :
event.setView(name="mod1:manager.index",noLayout="true");
event.renderView("mod1:manager.index");
Btw. runEvent(mod1:manager.index') looks for the Modules Template in the root-Apps
layout-Folder.
My aim is to render Module-views/viewlets dynamicly from the root-App.
Oh wait! I just found the solution in one of Luis replies:
http://groups.google.com/group/coldbox/msg/983dcb25132f7a46
//Anywhere
#runEvent(mod1:handler.dspView")#
Then the event:
function dspView(event){
// any logic here
// render it out
return renderView("mod1/manager/index");
}
But this still requires a separate Module-View in my root-apps view-folder,
what mixes & separates my modules content.
Regards,
Daniel