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
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
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
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
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
5 matches
Mail list logo