Popup window error
Hi,
I'm creating a popup (titleWindow), as described in http://knowledge.robotlegs.org/faqs/reference-mvcs-implementation/h...
It works ok until I try to inject the model of the popup into its mediator. I got this error:
Error: Injector is missing a rule to handle injection into
target [object myWindowMediator]. Target dependency:
myWindowModel
at org.swiftsuspenders.injectionpoints::PropertyInjectionPoint/applyInjection()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/SwiftSuspenders/src/org/swiftsuspenders/injectionpoints/PropertyInjectionPoint.as:43]
at org.swiftsuspenders::Injector/injectInto()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/SwiftSuspenders/src/org/swiftsuspenders/Injector.as:120]....
Any ideas? thanks in advance.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by oscar on 27 Mar, 2010 07:05 PM
Here's the error:
Support Staff 2 Posted by Till Schneidere... on 27 Mar, 2010 08:48 PM
It means that your class "myWindowMediator" has an injection defined
for a property of the type "myWindowModel", for which you haven't
defined a mapping.
I guess you either forgot to do an
"injector.mapSingleton(myWindowModel)" in your application's startup
or you are setting that mapping but the view is added to the display
list before that.
(As an aside, I'd recommend naming your classes with an upper first
letter. Not only is that the convention that's used by 99%+ of the
Flash community, there are also some tools out there that rely on this
convention and might malfunction should you ever try to use them.
Apologies if you know all about that and have specifically decided on
this naming convention.)
3 Posted by oscar on 27 Mar, 2010 11:52 PM
Totally right! tks.