jahnvi25
Joined: 22 Feb 2012 Posts: 9 Location: NJ
|
Posted: Wed May 09, 2012 5:31 pm Post subject: Dynamic Object with Message Handler |
|
|
Hi,
We are using parsley 3 for developing our new application and we are using the following structure.
View --> PresentationModel(Dynamic Object) --> Commands.
All the views will be tied with a presentationModel which we have configured as dynamic object,.We will have the same view on multiple screens of our app, So we declared the presentationmodels as dynamic objects, so that each view will have its own instance of presentation model.
The flow goes like any action taken by user will invoke a method in presentation model which will inturn calls a command. The presentation Model will also register a method as messagehandler for the event thrown by the command class as response.Thats how presentationmodel get the response from command.
But since we have the multiple instances of presentationModel as messagehandler all the instances are getting the reposne instead we want only the instance which invoked the command class to get the reponse.
Is there anyway to do this ??
In short is there a way to specify which instance of dynamic object has to get the messagehandler invocation ?? instead of all the instances getting the message?? |
|