Hi all,
Many many thanks for your work. Absolutly fabulous!
That said, all examples are quite basic in the way they deal with a single business object.
I'm trying to build up a demo application melting the skeleton app with the login app & the employeeAdmin app.
On top of those, I want to put ACL management (proxy) and form validation (custom class in the control dir)
I have working the skeleton app melted & the login app with form validation in one hand.
I have working the employeeAdmin app with acl management in the other hand.
Notice that thos 2 works are basics (only on BO each)
Problems arise when melting the two previous works:
I have problem for referencing nested view components for mediator registration:
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns:view="org.puremvc.as3.demos.flex.weborb.ecrud.application.view.components.*"
...
private var facade:ApplicationFacade = ApplicationFacade.getInstance();
...
<mx:ViewStack id="vwStack" left="0" top="0" right="0" bottom="20" resizeToContent="false" creationPolicy="auto">
<mx:VBox/>
<view:SplashScreen id="splashScreen" showEffect="{slideInEffect}" hideEffect="{fadeOut}" />
<view:LoginPanel id="loginScreen" showEffect="{slideInEffect}" hideEffect="{fadeOut}" />
<view:MainScreen id="mainScreen" showEffect="{fadeIn}" />
</mx:ViewStack>
<view:StatusControlBar id="statusControlBar" left="0" bottom="0" right="0" />
</mx:Application>
MainScreen.mxml is the following:
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns:people="org.puremvc.as3.demos.flex.weborb.ecrud.application.view.components.*"
...
<mx:VBox>
<people:PeopleList id="peopleList" width="100%" />
<mx:HBox>
<people:PeopleForm id="peopleForm"/>
<people:RolePanel id="rolePanel" width="280" height="100%"/>
</mx:HBox>
</mx:VBox>
</mx:Canvas>
ApplicationMediator is registered by a command at statup.
When registrering (in ApplicationMediator) the following mediators: PeopleListMediator, PeopleFormMediator, RolePanelMediator, what do I have to put there:
facade.registerMediator( new PeopleFormMediator(
app.mainScreen.peopleForm ) );
Because app.mainScreen.peopleForm is null

The ideal would be to register PeopleFormMediator not in ApplicationMediator, but in MainScreenMediator, but it is even more complicated to me...
I would love your help.