Title: Where should data be stored Post by: vladakg85 on June 17, 2009, 06:30:05 Scenario: User type login data, proxy invoke loginMethod on server which after succesfull login return collection of user data (id, username, password, fname, lname, address, email etc.), now...
After succesfull login loginControll is removed and application is in new state, here I wan't to display userDetails but I don't know how :(. After login where should I store returned users data so that I can use them later, and how to retrive them when I need them? Title: Re: Where should data be stored Post by: puremvc on June 17, 2009, 06:47:16 In a Proxy.
To retrieve from a Command, Mediator or another Proxy: facade.retrieveProxy(proxyName) -=Cliff> Title: Re: Where should data be stored Post by: vladakg85 on June 23, 2009, 11:43:59 loginUserData is always null when I try to call it from mediator :(
(http://img37.imageshack.us/img37/4056/debug1.jpg) ------------------------------ LoginCommand public class LoginCommand extends SimpleCommand implements ICommand LoginProxypublic class LoginProxy extends Proxy implements IProxy Mediatoroverride public function handleNotification(notification:INotification):void Title: Re: Where should data be stored Post by: vladakg85 on June 25, 2009, 02:20:39 Ok, problem solved, my friend with more experience help :)
I made stupid mistake, I have wrong mapped User VO, instead this: [RemoteClass(alias="BL.User")] Now I have this: [RemoteClass(alias="DemoFluorine.BL.User")] Thats why service returned me ObjectProxy |