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
Hi,
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 / Re: What values can you store on a mediator? on: July 03, 2009, 12:47:48
A quick question regarding the content data for the Tabs.

I usually work with XML to provide the content data for my View Components. Would you suggest that I get the Mediator (or a proxie) to convert the data into some sort of santised VO before passing it to my View Component, or is it still good practice to allow the TabNavigator to deal with raw XML itself?
3  Announcements and General Discussion / Architecture / Re: What values can you store on a mediator? on: July 02, 2009, 08:37:28
Thanks again Cliff - makes a lot of sense.
4  Announcements and General Discussion / Architecture / Re: What values can you store on a mediator? on: July 01, 2009, 03:52:42
Thanks Cliff,
I understand what you're saying.

Does that mean the TabNavigator itself determines things like if a tab click should instigate a transition or not without consulting the mediator? (e.g. the requested tab is already open - so don't instigate a transition).

Maybe that makes sense, being a noob I was just cautious of putting too much logic into the platform specific side of the application and not within the main framework actors.

James
5  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,
James
Pages: [1]