Yep, and all of this stuff will be rolled into a tapestry-spring Maven
archetype.

The tapestry-spring-integration module will support
@Inject("spring:bean") to allow access to anything in the Spring bean
context.

On 2/19/07, D&J Gredler <[EMAIL PROTECTED]> wrote:
Good catch :-)

You also have to add the following line to your web.xml:

<listener><listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class></listener>


On 2/19/07, James Carman <[EMAIL PROTECTED]> wrote:
>
> Of course, you have to set up the ContextLoaderListener, right?
>
>
> On 2/19/07, D&J Gredler <[EMAIL PROTECTED]> wrote:
> > You can just inject the following into your pages:
> >
> >     @Inject
> >     private ApplicationGlobals globals;
> >
> > And then use the servlet context inside the globals object to get the
> > application context via
> >
> >     WebApplicationContextUtils.getRequiredWebApplicationContext
> > (servletContext);
> >
> > Once you have the application context, you just call getBean(String) to
> get
> > your managed beans.
> >
> >
> >
> > On 2/19/07, SergeEby <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Hi,
> > >
> > > I know Spring integration will be included later in T5, but was
> wondering
> > > if
> > > someone has already figured out how to do that.
> > > I am playing around converting an existing application to T5.
> > >
> > > Thanks,
> > >
> > > /Serge
> > > --
> > > View this message in context:
> > > http://www.nabble.com/T5%3A-Spring-Integration-tf3253045.html#a9042869
> > > Sent from the Tapestry - User mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to