tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/67-popup-window-errorRobotlegs: Discussion 2018-10-18T16:35:10Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/13250532010-03-27T19:05:57Z2010-03-27T19:05:57ZPopup window error<div><p>Here's the error:</p>
<pre>
<code>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]....</code>
</pre></div>oscartag:robotlegs.tenderapp.com,2009-10-18:Comment/13250532010-03-27T20:48:52Z2010-03-27T20:48:52ZPopup window error<div><p>It means that your class "myWindowMediator" has an injection
defined<br>
for a property of the type "myWindowModel", for which you
haven't<br>
defined a mapping.</p>
<p>I guess you either forgot to do an<br>
"injector.mapSingleton(myWindowModel)" in your application's
startup or you are setting that mapping but the view is added to
the display<br>
list before that.</p>
<p>(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<br>
Flash community, there are also some tools out there that rely on
this<br>
convention and might malfunction should you ever try to use
them.<br>
Apologies if you know all about that and have specifically decided
on<br>
this naming convention.)</p></div>Till Schneidereittag:robotlegs.tenderapp.com,2009-10-18:Comment/13250532010-03-27T23:52:45Z2010-03-27T23:52:45ZPopup window error<div><p>Totally right! tks.</p></div>oscar