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  PureMVC Manifold / MultiCore Version / Re: Events on GWT on: October 28, 2008, 09:17:34
Sure!

Here's the link for the whole thread:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/67e81d9d761598e2/f7a4ec3ad0ff1725?hl=en&lnk=gst&q=puremvc#f7a4ec3ad0ff1725
2  PureMVC Manifold / MultiCore Version / Re: Events on GWT on: October 27, 2008, 05:10:59
I asked the same question and got a lot of answers on the GWT list, thanks.
3  PureMVC Manifold / MultiCore Version / Re: Events on GWT on: October 23, 2008, 04:47:09
Well, seems like no one is using PureMVC and GWT... I am starting to regret my decision...
4  PureMVC Manifold / MultiCore Version / Events on GWT on: October 18, 2008, 03:22:25
Hi all,

we're using puremvc for Java on a GWT project. I've wrapped my mind around almost everything, but one doubt still haunts me. How to properly handle events sent by widgets on GWT?

In Flex we could create and dispatch an Event on the view, and register the mediator as a listener to this event. I thought about doing the same in GWT, but dispatching an Event from the view as is done in Flex doesn't seem like an option...

What I could do is making my Mediator implement the Listener, get each widget that needs such listener from the view and add itself as a ClickListener. This seems fairly complicated to me, and I am only doing this in order to avoid a coupling between the View and Mediator on the View level, since I could add a reference to the Mediator on the view, and when creating each button I would simply add the mediator as a Listener. That would be simpler, but does not look like the PureMVC way.

Anyone has a better idea? One that would be fit to the puremvc principles?

Thanks!
Pages: [1]