-
Aug 27th, 2009, 08:49 AM
#1
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?
Example:
SomeUIComponent:
[Bindable]
[Autowired]
public var browserDialogPM:BrowserDialogPM;
Where the SomeUIComponent is used:
_content.addChild(someUIComponent);
--> Autowired ist done the first time in someUIComponent
_content.removeAllChildren();
_content.addChild(someUIComponent);
--> Autowired ist done the second time time in someUIComponent
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules