--- In [email protected], Shlomi Cohen <[EMAIL PROTECTED]> wrote:
> Hi
>  
> yes you are right , and i shorten the calls for simplicity. the question is
> how the the userVO object is shared among all those 
> View--Helper--Control--Delegate
>  
> i understand that the helper pass it on but where is it best to define it ,
> on the helper ? or the view ??

After re-reading your question,  I believe I answered it wrong. again. sorry. 
if you are 
asking where to put the variable declaration for the UserVO object, I would put 
it in the 
view because i would most likely want to define a validator on some of its 
properties.

Todd Boland
Charged Software

>  
>  
> thanks
>  
> Shlomi
> 
>   _____  
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of charged2885
> Sent: Tuesday, June 14, 2005 10:34 PM
> To: [email protected]
> Subject: [flexcoders] Re: Cairngorm and popup window design question
> 
> 
> disclaimer: i'm new to actionscript and caingorm so i could be mistaken.
> 
> From what I understand, you should not be accessing any services from the
> viewhelper. 
> Broadcast a FrontController.SAVE_USER event with the UserVO as data inside
> the 
> viewhelper instead. this should invoke the SaveUserCommand which calls your 
> AccountDelegate's saveUser method which calls the service's saveUser.
> 
> Todd Boland
> Charged Software
> 
> --- In [email protected], Shlomi Cohen <[EMAIL PROTECTED]> wrote:
> > Hi
> >  
> > This is a design question using the cairngorm framework .
> >  
> > How is it best to implement the design pattern (MVC) proposed by the
> > framework , regarding object passed from a window to a popup window , 
> > considering that this object needs to be accessed both in the View and
> > ViewHelper
> >  
> > for example: you have the CreateUser.mxml and the CreateUserViewHelper.as
> >  
> > --here is CreateUser.mxml 
> >  
> > .....
> >  
> >             public var userVO:UserVO; //  this is set by the calling
> window
> >  
> >             <view:CreateUserViewHelper id="helper"/>
> >  
> >              <mx:FormItem label="User Name" direction="horizontal">
> >                     <mx:TextInput id="txtUserName"
> text="{userVO.userName}"
> > width="200"/>
> >                 </mx:FormItem>
> >                <mx:FormItem label="Login name" required="true"
> > direction="horizontal">
> >                     <mx:TextInput id="txtLoginName"
> > text="{userVO.loginName}" width="200"/>
> >                 </mx:FormItem>
> >                 <mx:button click="helper.saveUser()"/>
> >  
> > --- here is CreateUserViewHelper.as
> >  
> > class CreateUserViewHelper.as{
> >     
> >     function saveUser(){
> >         service.saveUser(view.userVO);  // is this the best way or for
> this
> > class to hold it ???
> >         
> >     }
> >  
> >   
> > }
> >  
> > Thanks 
> >  
> > Shlomi
> >  
> >  
> > 
> > 
> > ______________________________________________________________________
> > This email has been scanned by the MessageLabs Email Security System.
> > For more information please visit http://www.messagelabs.com/email
> <http://www.messagelabs.com/email>  
> > ______________________________________________________________________
> 
> 
> 
> 
>   _____  
> 
> Yahoo! Groups Links
> 
> 
> *     To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
> <http://groups.yahoo.com/group/flexcoders/> 
>   
> 
> *     To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>   
> 
> *     Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/> . 
> 
> 
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
> 
> 
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to