|
From: Juergen H. <ju...@in...> - 2005-06-01 18:58:33
|
Keith, If you define your View instances as beans (using XmlViewResolver or ResourceBundleViewResolver), you can wire them with anything you want, using standard Spring bean references. However, if you're using a UrlBasedViewResolver, this is not available because of the different View instantiation model there. You can do ApplicationContext lookups in an ApplicationContextAware view, though. What concretely do you want to pass to a View instance? Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Keith Donald Sent: Wednesday, June 01, 2005 2:31 AM To: spr...@li... Subject: [Springframework-developer] am I missing something Is there an easy way to invoke methods on a bean exported in the Spring application context from a view? It'd be quite useful for this app I'm building. I reckon I could just stick the service I want to expose into the model but it'd be cool to have the whole context in there in this case.. I know we also want this capability in web flow definitions as well. Keith |