Think of an application that has a Model, View, Presenter and a Command.

My View has a component, which is a summary of a data set(data and summary data 
resides in the Model), View fires event that basically is a request to generate 
a detailed data for a specific case (think of a datagrid, user double clicks 
the cell and a cell details should come up in a popup, special region on the 
view, etc...). The event reaches the Command (thru Presenter), which generates 
this small piece of data and now the question is: 

What is the best way to pass this small/temp data to the View?

#1 - Conceptually, this small piece should be a part of the summary data in the 
Model... If I add it to the Model, how the View should get notified about the 
change? 
#1a - Fire an event from Presenter once Command is done? 
#1b -Watch for the data change in the Model from the View?

#2 Or, don't store this too "temporary" data to the Model (also makes sense), 
just pass it to the View via Event from the Presenter?


PS: I am using SpringActionscript

Reply via email to