Thanks for the sample. I've just started digging into PureMVC and chose this sample because I intend to use it with WebOrb as well.
In the LoginProxy, a local reference is kept to the ApplicationProxy. With that local reference, the viewstate is directly set e.g.:
_appProxy.viewState = ApplicationProxy.LOGGED_IN_STATE;
Isn't it possible to make the ApplicationProxy change its state based on notifications, e.g. when the LoginProxy sends the LOGIN_SUCCESS notification?
I guess that the task of a login proxy must only be to check whether credentials are correct. Not define the state of the whole application.
I'll be glad to hear any ideas or opinions about this issue.
Ok, if found this link and that explains it all....:http://puremvc.org/content/view/97/188/