Martin Strand ha scritto:
> There's a full reference here:
> http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/
>
>
Ok thanks, now I realize that I had already found it but couldn't
realize how to use it
> I haven't tried it myself but this should work:
>
> value="service
> Shing Hing Man ha scritto:
>> Yes it is a typo. I meant HiveMind.xml (instead of .application).
>>
>> Shing
>>
>>
>> --- On Thu, 28/5/09, Andreas Andreou wrote:
>>
>>
>>> From: Andreas Andreou
>>> Subject: Re: [Tapestry 4.1]
Hing Man ha scritto:
> Yes it is a typo. I meant HiveMind.xml (instead of .application).
>
> Shing
>
>
> --- On Thu, 28/5/09, Andreas Andreou wrote:
>
>
>> From: Andreas Andreou
>> Subject: Re: [Tapestry 4.1] how to get ServletContext inside a service
>&g
Yes it is a typo. I meant HiveMind.xml (instead of .application).
Shing
--- On Thu, 28/5/09, Andreas Andreou wrote:
> From: Andreas Andreou
> Subject: Re: [Tapestry 4.1] how to get ServletContext inside a service
> To: "Tapestry users"
> Date: Thursday, 28 May, 2009,
Inject.html
>>
>> Shing
>>
>> Home page : http://www.lombok.demon.co.uk/
>>
>>
>>
>> --- On Thu, 28/5/09, Ivano Luberti wrote:
>>
>>
>>> From: Ivano Luberti
>>> Subject: Re: [Tapestry 4.1] how to get ServletContext
>
> http://lombok.demon.co.uk/tapestry4Demo/Inject.html
>
> Shing
>
> Home page : http://www.lombok.demon.co.uk/
>
>
>
> --- On Thu, 28/5/09, Ivano Luberti wrote:
>
>
>> From: Ivano Luberti
>> Subject: Re: [Tapestry 4.1] how to get ServletContext inside
You might like to try the suggestion on the following page.
http://lombok.demon.co.uk/tapestry4Demo/Inject.html
Shing
Home page : http://www.lombok.demon.co.uk/
--- On Thu, 28/5/09, Ivano Luberti wrote:
> From: Ivano Luberti
> Subject: Re: [Tapestry 4.1] how to get ServletContext
Thanks Norman, but I guess you use that inside a class that extends
BasePage as I do.
But here I have a concrete class that implements IEngineService.
I use it to return a PDF on the response output stream.
So either I cannot use an abstract class that extends BasePage and
therefore I cannot use th
Here is how I do it:
@InjectObject("service:tapestry.globals.HttpServletRequest")
public abstract HttpServletRequest getRequest();
public ServletContext getServletContext() {
return getRequest().getSession().getServletContext();
}
Norman Franke
Answering Service for Directors, Inc.
www.