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 / Multiton Module Demos and Interfaces, why does the view implement? on: June 20, 2008, 01:16:31
Hi,

I am using the Module Pipeworks and Modularity Demos as a reference guide, and I saw in the Shell Views that they implement the interfaces that communicate to the Modules.

Is there any reason why its the View and not the Mediator for the Shell View?

The reason I ask is that I am making a module based project, which has a login in the shell, and basically after login, the shell will get the user roles, and load up modules... each module will need to know the user roles, so I have a getUserRoles() to be able to retrieve the user roles.. However I had not planned on storing the roles in the View Component, as its already in the Model Proxy.

Is there another approach to implementing the ModuleShell Interface that has the ability to retrieve data from the Proxies?

Regards

Mark
2  Announcements and General Discussion / Architecture / Mediator Exists but View Component not instantiated on: April 21, 2008, 10:40:31
Hi,

Today I came accross a wierd situation, using the AS3 Singleton Port.

I have a Summary screen tab, which is loaded up after a user logs in and there is a detail tab. The detail tab is shown when the user clicks on the summary, it goes to the detail view.

What I have done is in the mediator send a notification when a user clicks on a summary and it its received by an Command which calls the proxy to load the detail. The proxy sends a notification when the detail was loaded. In my mediator for the detail screen I am receiving that notification and trying to set the fields in my view Component.

The issue I am finding is that if the user has not seen any detail, i.e. the first time they click on a summary, the detail view component doesn't exist so when I am trying to set the text inputs and so on to the detail information its throwing exceptions. The Proxy is getting its data from a server so in theory it could take time to load (though in my dev env it doesnt)

Should I be doing an explicit instantiation of the view component? I don't think that makes sense...

Should I send a notification to view the detail screen before the model proxy sends the load, and make the view "greyed" out until it receives the information? Doesn't look that visually pleasing...

Any other ideas on how I can get around the issue I am facing?

Regards

Mark

 
3  Announcements and General Discussion / Architecture / Same Command with 2 Different Notifications? on: April 04, 2008, 09:54:27
Hi,

I am developing a CRM tool using PureMVC and Flex...

So imagine I have screen with case summaries... this is the first screen after my splash screen comes up.

So I have a notification when the which says when all the startup has been done. I want to then run a command to load up all the case summaries...

I also want a refresh button on my case summary screen to refresh them... and get any new ones...

I was thinking that I would have one command LoadCaseSummariesCommand and in the ApplicationFacade I register that command against 2 notifications ...

One being STARTUP_COMPLETE and the other being REFRESH_CASE_SUMMARIES

I am just a little confused if that is the best approach or if there is another way to do it?

Thanks and Regards

Mark
4  Announcements and General Discussion / Architecture / View Component Library - Mediators go where? on: March 31, 2008, 02:45:20
Hi,

I am new to PureMVC.

I am creating a System, where I want a few view components to be in a library which would be shared across a few applications ... for example an ATOM feed viewer.

Would I put the Mediator in each Application for this ATOM Feed viewer? How would I bind my view to the ATOM feed if each Application has its own Model?

I hope I have made myself clear, any help would be appreciated

Regards

Mark
Pages: [1]