Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Getting Started / Re: Cannot receive the same notification with multiple mediators on: January 14, 2009, 08:11:44
Hi,

Thanks for your quick response. I found the error, I think. Mediator A always receives the notification before Mediator B. In Mediator A, a runtime error was generated because it tried to access a property of an uninitialized object. By commenting out that part, both Mediators receive the notification.

So I guess that Mediator B did not receive the notification because of a runtime error in Mediator A.

I also tried debugging to see the observer lists in the view, but I don't know where to find these lists.
2  Announcements and General Discussion / Getting Started / Cannot receive the same notification with multiple mediators on: January 14, 2009, 07:33:25
I have two mediators that should receive the same notification. Mediator A always receives the notification. Mediator B only receives the notification if I remove the notification from the function listNotificationInterests() in Mediator A.

Strange thing is that it worked a few hours ago...

What kind of error can I have made?

Thanks,
Eugene
3  Announcements and General Discussion / Getting Started / Re: Where to store 'current language'? on: January 05, 2009, 10:53:52
Hi Cliff,

Thanks for your response. That really helps me understanding the framework. Amazing that you have time to develop the framework and also be so active on the forum.

Eugene
4  Announcements and General Discussion / Getting Started / Where to store 'current language'? on: January 05, 2009, 04:04:21
Hi,

I'm busy with my first PureMVC application and I have difficulties with modeling my data. I'm modifying the Login example using WebOrb to get started. In that example, an ApplicationProxy is used that stores the current state of the application in a local variable. It provides get/set functions to access the state.

1. Is it a good idea to use the ApplicationProxy to store the current language (English, German etc.) as well? Or is it wise to have a LanguageProxy that holds all possible languages and keeps track of the current language?

2. Furthermore, I don't fully understand the data object in proxies. Why can't you use public variables (or getter and setter functions) in proxies?

Thanks.  Hope someone can help me with these basic questions.

Eugene
5  PureMVC Manifold / Demos and Utils / Re: Login - A PureMVC AS3 / Flex / WebORB Demo on: December 26, 2008, 02:34:43
Hi,
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.

edit:
Ok, if found this link and that explains it all....:
http://puremvc.org/content/view/97/188/
Pages: [1]