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 / Architecture / Dealing with listeners for an asynchronous proxy method on: August 07, 2009, 08:23:29
I'm having trouble working out which is the best way to go about my project. I have a proxy that is providing access to data via a web service. Obviously this is asynchronous, so I have 3 potential listeners that I need to attach - SUCCESS, ERROR and PROGRESS.

This proxy is specifically allowing access to user data, however the web service has been set up to retrieve the data in different specific requests, so there might be 10 or more different sorts of webservice calls that need to be made on demand. It seems like overkill making a unique SUCCESS, ERROR and PROGRESS notification for each of these 10 different request types.

So here's my question, is it bad form to attach mediator based event listeners that are fed to the proxy when it makes the webservice call? These events would then bypass the notification system and communicate directly with the Mediator that has made the request...
2  Announcements and General Discussion / Architecture / What values can you store on a mediator? on: July 01, 2009, 05:53:27
Hi I think this is a question that can be answered pretty quickly,

Like a lot of people out there pureMVC is really exciting me and I'm attempting my first project now. It's a very simple widget for a website that with have 3 slideout panels with each displaying different information. I have a mediator called the "TabMediator" which I am going to use to steward the tabs and their transitions.

I'm currently trying to work out where I should store information about which is the currently selected Tab. Can I store this as a value in the TabMediator, or do I have to create a proxy just to retain this one piece of information?

What's the thinking on deciding somethign like this?

Thanks in advance,
Pages: [1]