Re: [Tapestry 4.1] how to get ServletContext inside a service

2009-05-29 Thread Ivano Luberti
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

Re: [Tapestry 4.1] how to get ServletContext inside a service

2009-05-29 Thread Martin Strand
> 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]

Re: [Tapestry 4.1] how to get ServletContext inside a service

2009-05-29 Thread Ivano Luberti
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

Re: [Tapestry 4.1] how to get ServletContext inside a service

2009-05-28 Thread Shing Hing Man
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,

Re: [Tapestry 4.1] how to get ServletContext inside a service

2009-05-28 Thread Andreas Andreou
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

Re: [Tapestry 4.1] how to get ServletContext inside a service

2009-05-28 Thread Ivano Luberti
> > 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

Re: [Tapestry 4.1] how to get ServletContext inside a service

2009-05-28 Thread Shing Hing Man
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

Re: [Tapestry 4.1] how to get ServletContext inside a service

2009-05-27 Thread Ivano Luberti
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

Re: [Tapestry 4.1] how to get ServletContext inside a service

2009-05-27 Thread Norman Franke
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.