Re: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Lukasz Lenart
2010/6/29 Greg Stasica gstas...@googlemail.com: 2. get the MyBean object in getModel() method but i don't think this method should do any dao/business operations You can always use Preparable interface Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010

Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Greg Stasica
hi, the scenario is as follow:1 1. class EditMyBeanAction implements Model... 2. url mapping calls edit method on the EditMyBeanAction 3. the result should be that once edit method returns (it loads MyBean object from the database) MyBean should be displayed on the jsp the problem is that it

Re: Fwd: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Rene Gielen
Hi Greg, the thing about ModelDriven is that the model object gets pushed on the value stack _before_ your action method is executed. To initialize the model object before the ModelDrivenInterceptor comes into play, just implement Preparable and do your initialization in prepare() (as Lukasz

Re: Fwd: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Greg Stasica
hi, thanks for your reply but this didn't seem like solve my problem entirely as PreparableInterceptor gets called before ParameterInterceptor. The upshot is that i didn't have an access to my parameters which drive prepare method. Nevertheless i found that probably the easiest solution here is

Fwd: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-28 Thread Greg Stasica
hi, the scenario is as follow:1 1. class EditMyBeanAction implements Model... 2. url mapping calls edit method on the EditMyBeanAction 3. the result should be that once edit method returns (it loads MyBean object from the database) MyBean should be displayed on the jsp the problem is that it