Re: t5 Inject service to HttpSessionListener

2008-02-28 Thread anujith amaratunga
Thanks Mark. I've tried this approach, but as you say it builds you a new Registry. The problem is if you need a stateful service, i.e. a service which handles persistence. Depending on your configuration this might give you undesired results. The solution suggested by Ted, http://www.nabble.com

t5 Inject service to HttpSessionListener

2008-02-28 Thread anujith amaratunga
Hi, I am trying to inject a service into a class which implements HttpSessionListener, which is instantiated by the web container (jetty). So I cant use the constructor or the on call methods sessionCreated() or sessionDestroyed() to pass in a service, nor can I use the @Inject annotation because

Re: T5: cleaning up persisted objects during user logout

2007-11-28 Thread anujith amaratunga
Hi, On Nov 28, 2007 4:20 PM, Marcus <[EMAIL PROTECTED]>; wrote: > > On Nov 28, 2007 4:15 PM, Angelo Chen <[EMAIL PROTECTED]>; wrote: > > > > I have a few pages that has some @Persist objects, I'd like to release > all > > those objects when user log out the application so that the next login >

Tap5 - integrate several templates

2007-08-01 Thread Anujith Amaratunga
Hi, How do I integrate several templates into one page? i.e I have a header and a footer which needs to go into all the pages, but I don't want to duplicate code in all pages. I've looked at the element and embedded components but not sure if that's the way to go. Any help is much appreciated.