PureMVC Architects Lounge

PureMVC Manifold => Standard Version => Topic started by: gabon on July 02, 2008, 03:15:10



Title: Separated View
Post by: gabon on July 02, 2008, 03:15:10
The nice thing when using PureMVC in ActionScript is that because the presence of the EventDispatcher the view can be totally unaware of the mediator and the mediator registers to the events which it is interested. I saw the Java demo and because of the absence of a toolkit the view has a reference to the mediator. Isn't this a bit in contrast with PureMVC philosophy? Is there a lightweight toolkit which can be used, or created, to avoid it?

Cheers, chr


Title: Re: Separated View
Post by: Riftwar on July 06, 2008, 09:05:53
Yes you are right, it is in contrast with the PureMVC philosophy. The reason behind doing it that way was the fact that Java ME is very limited in libraries and has no means of attaching custom event handlers. A toolkit probably could be created but this was a faster method to get the PureMVC Java port working on mobile devices.