Dave Newton on 31/01/08 15:29, wrote:
--- Adam Hardy <[EMAIL PROTECTED]> wrote:
* ModelDriven: how do I get hold of my model during my action methods? I
don't want to get getModel() again, because that will retrieve another
instance
of the entity and not the one that was populated by struts.
Lazy initialization (via null check or by setting an instance var), or config
through Spring, or...
If your getModel() puts the model entity on an instance variable, won't that
confuse the param interceptor? Then it'll have the choice of populating the
model it got from getModel() and it'll see that there's a model entity on the
action too.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]