Hi Chris,

I believe you can just do this:

<inject property="requestGlobals"
object="service:tapestry.globals.RequestGlobals" />

public abstract RequestGlobals getRequestGlobals();

We've been on annotations exclusively for a while so hopefully my memory
is right about that..

Ben

-----Original Message-----
From: Chris Chiappone [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 16, 2007 3:15 PM
To: Tapestry List
Subject: Re: Injecting RequestGlobals

Oh and I've also tried making the getters and setters abstract and
that didn't work either.

On 5/16/07, Chris Chiappone <[EMAIL PROTECTED]> wrote:
> I have been forced to downgrade my application that I've started to
> java 1.4 for the time being and am trying to inject a hivemind service
> but don't seem to be doing it right because the object I am trying to
> get injected seems to be null
>
> In my component spec i have the following:
>
>         <inject property="requestGlobals"
> object="service:tapestry.globals.HttpServletRequest"
>                 type="org.apache.tapestry.services.RequestGlobals"/>
>
> and in my java class i have:
>
>         private RequestGlobals requestGlobals;
>
>
>         public RequestGlobals getRequestGlobals() {
>                 return requestGlobals;
>         }
>
>
>         public void setRequestGlobals(RequestGlobals requestGlobals) {
>                 this.requestGlobals = requestGlobals;
>         }
>
>
> Thanks,
>
> --
> ~chris
>


-- 
~chris

---------------------------------------------------------------------
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]

Reply via email to