Parameter Interceptor behaviour in case of Model driven Action
raj malhotra
Ranch Hand
Joined: Feb 22, 2007
Posts: 285
posted
0
HI,
If i use Model driven action and use model to store the data ,How Parameter Interceptor knows that it should look for setters in the model and not in the Action class?I tried to look into the source code but did n't get , how its working?
Thanks for reading this
If an action implements ModelDriven the results of the getModel() call are pushed onto the value stack.
Mark E Hansen
Ranch Hand
Joined: Apr 01, 2009
Posts: 639
posted
0
And in case David's response wasn't clear, when the Model is pushed on the Value Stack, it sits above the Action. When both the Model and Action expose the same property, the one in the model will effectively hide the one in the action.
raj malhotra
Ranch Hand
Joined: Feb 22, 2007
Posts: 285
posted
0
Thanks Mark and David, so what i understood is that Interceptor will always call setter on valuestack and for them it does not matter whether it is model or Action itself.