ColdBox Forums Notification: Post to Using ioc plugin in viewlet event handler

Title: Using ioc plugin in viewlet event handler
Thread: Using ioc plugin in viewlet event handler
Forum: Need Help?
Conference: ColdBox
User: doryphores Hello,

I'm new to ColdBox and I'm quite impressed so far. One question
regarding viewlets and ioc:

Here's the situation:

I have a menu viewlet
that I want to render in my layout. The viewlet runs an event to to get the menu
data from the model. In the init function of the viewlet handler, I call the ioc
plugin (I'm using lightwire for ioc) to get a reference to one of my model
service objects.

When I run the page, coldbox tells me that the getBean
method of the factory doesn't exist (on the iocfactory object). When I check the
ioc plugin instance, it is empty (the iocfactory is missing). This is strange
because in my other handlers, the ioc plugin works fine.

Any ideas?

See
attached file for code examples
http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=8CDA1E69-FF65-CEF6-6596E3F9F1FB208B