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 / General Discussion / Re: Document-Based Application: is PureMVC the way to go? on: February 13, 2009, 09:29:06
Hi Shaun,

I know how you feel since I had similar moments in my projects and in many cases you see the solution when you look at the problem from different perspective. You just have to keep trying :)

I don't know how your project looks but I'm guessing that you have one mediator for Flex application instance and no matter how deeply your list component can be nested you always know when you need to display that data (Flex has many events for view components states) and you can always be sure that this list component is on display tree.

The way I would try to solve this problem is to dispatch custom event from the list component and let it bubble up to the application instance, in application mediator listen to this event and fire notification that will trigger command for registering mediator and proxy as in Cliff example for standard version of PureMVC. This should be very simple solution, one event and one notification.

I hope this helps you :)

Miroslav
2  PureMVC Manifold / Bug Report / [ FIXED ] Small Bug in Notification on: January 28, 2008, 01:00:31
I've noticed very small bug in Notification class (v1.7.1) in toString method.

On lines 115 and 116 it's:
msg += "\nBody:"+( body == null )?"null":body.toString();
msg += "\nType:"+( type == null )?"null":type;


but it should be:
msg += "\nBody:"+(( body == null )?"null":body.toString());
msg += "\nType:"+(( type == null )?"null":type);


so you get string concatenation instead of using "\nBody" and "\nType" strings as conditional statement for conditional operator.
Pages: [1]