coldbox 3.5 - viewlet not rendering

Hi folks,

I’m trying to run a viewlet within a module and no errors are thrown, and nothing is rendered. Here is what I have.

//handler - Viewlets.cfc


function voip(event, rc, prc){
var rc = event.getCollection();
var prc = event.getCollection(private=true);
return renderView(“viewlets/voip”);

In my view I then call #runEvent(event=‘viewlets.voip’,prepostExempt=true)#

According to the docs this looks right. Do I have call the run event different since i’m within a module?



When rendering the view make sure you explicitly tell it from
What module. As it stands viewlwts can execute in any context therefore they need the name of the view and the name o the modiel


You don’t need

var rc = event.getCollection();
var prc = event.getCollection(private=true);

If you are taking them as arguments, its redundant. Outside of that, are you sure that your voip view is returning data/html?

Also, if the event is a module event, be sure to use the full event syntax “module:handler.action”. This could be your issue.


Hi Luis,

I tried that as well.


but nothing rendered. and no errors. thoughts?


Sorry guys. My bad. I placed my viewlets handler in the wrong module. doh!

Mo Modules, Mo Problems! Carry on!



I mean on the renderview