Spicefactory Forum Index Spicefactory
Forum Archive
 
 SearchSearch    Log inLog in 

Dynamic Object with Message Handler

 
Post new topic   Reply to topic    Spicefactory Forum Index -> Spicefactory
View previous topic :: View next topic  
Author Message
jahnvi25



Joined: 22 Feb 2012
Posts: 9
Location: NJ

PostPosted: Wed May 09, 2012 5:31 pm    Post subject: Dynamic Object with Message Handler Reply with quote

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??
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Spicefactory Forum Index -> Spicefactory All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group