Aug 27th, 2009, 08:49 AM
Autowired when components are removed and subsequent addChild is called
We use Spring Actionscript to wire ours Views to their Presentation Models. This worked quite fine until we started to remove Components and add them later. This is a problem, because the Presentation Model is prototype scoped and all data in the original presentation model is lost when it is replaced by a new presentation model.
Is there a possibility to prevent Autowireing at all addChild call when the component is already wired?
public var browserDialogPM:BrowserDialogPM;
Where the SomeUIComponent is used:
--> Autowired ist done the first time in someUIComponent
--> Autowired ist done the second time time in someUIComponent