SpringPage added by Ulrich StärkTapestry/Spring IntegrationProvides integration between Tapestry and Spring, allowing beans defined by Spring to be injected into Tapestry IoC services, and into Tapestry components. Changes From 5.0You may now use the @Inject or @InjectService annotations inside Spring beans; these will be resolved to Tapestry services or other objects available via the MasterObjectProvider. Please see the [detailed guide to Injection|../tapestry-ioc/injection.html]. The dependency on Spring is no longer scope "provider" and has changed to 2.5.6. Spring Beans are no longer exposed as services, unless 5.0 compatibility mode is enabled. You no longer create a ContextLoaderListener. These changes represent an unfortunate backwards compatibility issue. If necessary, you can still use tapestry-spring version 5.0.18 with the rest of Tapestry. Spring VersionThis module is compiled and tested against Spring 2.5.6. It should be resonable to override the dependency to earlier versions of Spring, though the code makes use of some APIs that were added to Spring to support JDK 1.5 annotations. UsageThe integration is designed to be a very thin layer on top of Spring's normal configuration for a web application. Detailed instructions are available in the Spring documentation. Please omit the part about creating a ContextLoaderListener: this is now done automatically by Tapestry. web.xml changesThe short form is that you must make two small changes to your application's web.xml. First, a special filter is used in replace of the standard TapestryFilter: <filter>
<filter-name>app</filter-name>
<!-- Special filter that adds in a T5 IoC module derived from the Spring WebApplicationContext. -->
<filter-class>org.apache.tapestry5.spring.TapestrySpringFilter</filter-class>
</filter>
Change Notification Preferences
View Online
|
- [CONF] Apache Tapestry > Spring confluence
- [CONF] Apache Tapestry > Spring confluence
- [CONF] Apache Tapestry > Spring confluence
- [CONF] Apache Tapestry > Spring confluence
- [CONF] Apache Tapestry > Spring confluence
- [CONF] Apache Tapestry > Spring confluence
- [CONF] Apache Tapestry > Spring confluence
- [CONF] Apache Tapestry > Spring confluence
- [CONF] Apache Tapestry > Spring confluence
- [CONF] Apache Tapestry > Spring confluence
- [CONF] Apache Tapestry > Spring confluence
