breakoutj
unread,Jan 27, 2012, 11:33:42 AM1/27/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Swiz Framework
Hi folks.
I tried searching for this but given the particulars, I don't think my
search parameters were finding any previous posts on the matter. I
apologize if this has been answered previously.
I am curious to know the following (hopefully it's a simple yes/no
type thing). Given a property as an injection target:
[ Inject( source="model.foo", bind="true", required="false" )]
public var myFoo:Object;
What happens AFTER when the injection is fired when the model is not
present (model == null)? If when the model is instantiated via the
beans, will this injection fire again? Or due to the required=false,
the binding simply tried once and then stops working since the model
was not present the first time?
This may sound like a fringe case, however this occurs when using
certain module scenarios where controller to controller communication
is being used. In this case, an app-level controller has some non-
required inquiries on a module-level controller.