Re: Help with @Inject in onEvent Handler Object

2009-12-17 Thread Ashwanth Kumar
Hey Thanks Guys! Its working cool! - Ashwanth Kumar On Thu, Dec 17, 2009 at 6:21 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Thu, 17 Dec 2009 10:17:15 -0200, Joost Schouten (ml) < > joost...@jsportal.com> escreveu: > > > Your DBConnect object is probably not in one of

Re: Help with @Inject in onEvent Handler Object

2009-12-17 Thread Thiago H. de Paula Figueiredo
Em Thu, 17 Dec 2009 10:17:15 -0200, Joost Schouten (ml) escreveu: Your DBConnect object is probably not in one of the tapestry controlled packages and thus inject doesn't work. You can inject the Session directly into your page, or turn your DBConnect object into a tapestry service by ad

Re: Help with @Inject in onEvent Handler Object

2009-12-17 Thread Joost Schouten (ml)
Your DBConnect object is probably not in one of the tapestry controlled packages and thus inject doesn't work. You can inject the Session directly into your page, or turn your DBConnect object into a tapestry service by adding it to the services package, and changing the Session into a construc

Help with @Inject in onEvent Handler Object

2009-12-17 Thread Ashwanth Kumar
Hi, I've a problem. I'm using a page which has an actionlink like this: Link Text And i've an @OnEvent handler in my Page Class, as follows: @OnEvent(component="alid") void function() { DBConnect db = new DBConnect(); System.out.println(db.getLine()); } Till, this i've no problem. I've an obj