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

Pages: [1]
Print
Author Topic: For those familiar with Gaia Flash Framework  (Read 6328 times)
Glidias
Newbie
*
Posts: 2


View Profile Email
« on: September 18, 2008, 08:50:48 »

I decided to experiment with combining both Gaia's frontend flash framework together with PureMVC.

http://www.gaiaflashframework.com/index.php/topic,914.msg3943.html#new

Though the results seem pretty cool and really powerful combining the functionalities between both frameworks, there were definitely issues with which "framework does what". Mrs Gaia, being a front-end framework, should normally be restricted to the View context of the application, and should wait for notifications executed on  Mr PureMVC's backend  (whether through Commands or Notifications), before letting Mrs Gaia execute through it's different mediators. But conceptually, because Gaia also has "very useful" commands within it's Gaia.api, couldn't Gaia be also be part of the Controller aspect of an application? So, do I lump a Gaia.api command within a concrete Command class or is it better to notify some Gaia mediator or proxy to execute such a Gaia.api command? There are options to both tightly couple or looesly couple the 2 frameworks, providing an immense load of possibilities and power here. It also allows one framework to execute something first, than let the other execute in response to the first, providing an additional layer of synchronisation.

And there comes the prospect of event hijacking. Do we take advantage of this front-end aspect in Gaia to dispatch an event to the appropiate mediator to run application-specific commands, and then wait for a notification to release that Gaia hijack?  Often, it's safer and perhaps more managable to keep Gaia's hijack handling within the view context of the application only, Gaia within Gaia, even though cross-framework execution is still possible. Somehow, PureMVC's concrete commands prior to running Gaia, sounds safer. Yet, letting Gaia hijack and than running PureMVC's commands via a mediator sounds perfectly fair as well. After all, aren't they both in the Controller context in essence?

It's like a real-life marriage situation no doubt, with roles ---- roles that may not be clearly spelt out at the first instance. Mrs Gaia combines logic with view. But Mr PureMVC seperates logic and view. Oh gosh.

For PureMVC veterans/users familiar with how Gaia' s frontend works, give your advice. Can both frameworks work together in harmony?
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: September 18, 2008, 02:36:08 »

Playing well with other frameworks is always a virtue.

I don't know much about the strengths of Gaia, but you're certainly on the right track seeking them and looking to codify the roles that would make for a happy marraige of the two.

I look forward to seeing what you come up with!

-=Cliff>
Logged
Pages: [1]
Print