you need to create a provider, eg: interface requestprovider { request getrequest(); }
and class requestproviderimpl { request getrequest() { return requestcycle.get().getrequest(); }} then inject your beans with the requestprovider. -igor On Mon, Nov 3, 2008 at 8:52 AM, Ryan O'Hara <[EMAIL PROTECTED]> wrote: > Hello, > > Is there anyway to reference Wicket's request object in the Spring bean > definitions XML? I'm trying to define a session bean, which has two > parameters in the contructor - a SwarmWebApplication and a Request. Thanks > in advance. > > <bean id="myApplication" > class="edu.chop.bic.cnv.CnvApplication"> > </bean> > > <bean id="myRequest" > class="some.request.location"> > </bean> > > <bean id="mySession" > class="edu.chop.bic.cnv.session.MySession"> > <constructor-arg ref="myApplication"/> > <constructor-arg ref="myRequest"/> > </bean> > > Ryan > > --------------------------------------------------------------------- > 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]