Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-28 Thread Howard Lewis Ship
The thing is, you can inject the Request object itself. The proxy encapsulates the service scope ... so any thread can invoke methods on the proxy, but will end up accessing the per-thread Request implementation. Actually, no different than injecting RequestGlobals, the proxy handles delegation t

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-28 Thread jeffrey ai
That solves the problem, thanks, folks. I put my contribute code in AppModule here for later reference. === public static void contributeBindingSource( MappedConfiguration configuration, @InjectService("RequestGlobals") RequestGlobals request

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread Howard Lewis Ship
Remember that service injection is ONLY through the constructor, whereas component injection is ONLY through private instance variables. On Nov 27, 2007 2:57 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hi Jeffrey, > > Try injecting org.apache.tapestry.service.Request: > http://tapestry.apach

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread Filip S. Adamsen
Hi Jeffrey, Try injecting org.apache.tapestry.service.Request: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/services/Request.html That should do the trick. -Filip jeffrey ai skrev: Thanks, Filip. I tried to inject RequestGlobals, like I did for normal component, but that d

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread jeffrey ai
Thanks, Filip. I tried to inject RequestGlobals, like I did for normal component, but that doesn't work. It's not correctly injected. Filip S. Adamsen-2 wrote: > > Have you tried injecting the request directly into your BindingFactory? > > -Filip > > jeffrey ai skrev: >> Hi Folks, >> >> I th

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread Filip S. Adamsen
Have you tried injecting the request directly into your BindingFactory? -Filip jeffrey ai skrev: Hi Folks, I think I'm missing something here, but would appreciate a shove in the right direction. I created a new BindingFactory, introduced a new prefix, and successfully contributed it to Bindin

T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread jeffrey ai
Hi Folks, I think I'm missing something here, but would appreciate a shove in the right direction. I created a new BindingFactory, introduced a new prefix, and successfully contributed it to BindingSource. I am trying to do the following things in my new BindingFactory, = public Bindi