PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: dyoo on November 20, 2007, 11:04:18

Title: Pre-loading data from remote objects
Post by: dyoo on November 20, 2007, 11:04:18

I'd like to load a remote object via AMFPHP when my application first starts. The object would be accessed over the life of the application.

I'm trying to figure out where the best place to put the initial object load AND where to store the reference to the object.

The object would be used when performing business rules AND it is referenced to populate a combo box.

Where do these top-level data structures go?

How do we load remote objects when the result is an event?

I should mention that the object to be loaded depends on other variables so fetching the object in the constructor of my remote object proxy may not be the best approach.



Title: Re: Pre-loading data from remote objects
Post by: puremvc on November 20, 2007, 01:39:42
Daniele Ugoletti has done some work on this and has written an Application Skeleton that has to retrieve XML data at startup.

Please have a look at this thread:

Read the whole thread, (both pages) as toward the end, some refinements were made to handle multiple resources being loaded. The final download location was http://dev.ugoletti.com/puremvc/ApplicationSkeleton_v1.3.zip

Very soon, we'll have a public repository set up for this and other related projects.