Re: session is NULL

2010-11-11 Thread Anas Mughal
into my DAO. That is working well for me. (No constructors.) Best Regards. --Anas Mughal http://anas-mughal.com   --- On Thu, 11/11/10, Everton Agner wrote: From: Everton Agner Subject: Re: session is NULL To: "Tapestry users" Date: Thursday, November 11, 2010, 8:23 AM > @

Re: session is NULL

2010-11-11 Thread Everton Agner
0, Rich M wrote: > > From: Rich M > Subject: Re: session is NULL > To: "Tapestry users" > Date: Wednesday, November 10, 2010, 10:34 AM > > On 11/10/2010 03:42 AM, Anas Mughal wrote: > > I have setup my DAO as a Tapestry service in the AppModule as: > &

Re: session is NULL

2010-11-10 Thread Anas Mughal
Yes, that worked. I wish to thank everyone for their help! Tapestry is great! Coming from the Spring world, I do not miss those verbose Spring configuration files! --Anas Mughal http://anas-mughal.com --- On Wed, 11/10/10, Rich M wrote: From: Rich M Subject: Re: session is NULL To

Re: session is NULL

2010-11-10 Thread Rich M
page classes cleaner. Any suggestion would be greatly appreciated. --- On Wed, 11/10/10, Kalle Korhonen wrote: From: Kalle Korhonen Subject: Re: session is NULL To: "Tapestry users" Date: Wednesday, November 10, 2010, 1:48 AM @Inject is for pages. Make your DAO a T

Re: session is NULL

2010-11-10 Thread Cezary Biernacki
On Wed, Nov 10, 2010 at 9:42 AM, Anas Mughal wrote: > > I have setup my DAO as a Tapestry service in the AppModule as: > > [...] Then, I try to inject the session as follows: > > public class BranchHibernateDAO implements BranchDAO { > > @Inject > private Session session; > > >

Re: session is NULL

2010-11-10 Thread ael
Kindly visit my post. http://tapestry.1045711.n5.nabble.com/T5-Working-Tapestry-Hibernate-with-DAO-td3229905.html#a3229905 http://tapestry.1045711.n5.nabble.com/T5-Working-Tapestry-Hibernate-with-DAO-td3229905.html#a3229905 -- View this message in context: http://tapestry.1045711.n5.nabble.co

Re: session is NULL

2010-11-10 Thread Anas Mughal
/10, Kalle Korhonen wrote: From: Kalle Korhonen Subject: Re: session is NULL To: "Tapestry users" Date: Wednesday, November 10, 2010, 1:48 AM @Inject is for pages. Make your DAO a Tapestry service and inject the session to it via its constructor. Kalle On Tue, Nov 9, 2010 at

Re: session is NULL

2010-11-09 Thread Kalle Korhonen
@Inject is for pages. Make your DAO a Tapestry service and inject the session to it via its constructor. Kalle On Tue, Nov 9, 2010 at 9:52 PM, Anas Mughal wrote: > I have setup my Tapestry project using the Maven archetype. Then, I setup my > hibernate.cfg.xml file with references to my hibern

Re: session is NULL

2010-11-09 Thread Josh Kamau
no error with respect to the hibernate configuration.) > > I don't know how to resolve the session object being NULL in my simple DAO > below. > > > > > > > > Thanks for your help! > -- > Anas Mughal > > http://anas-mughal.com > > > > >

Re: session is NULL

2010-11-09 Thread Anas Mughal
Josh Kamau Subject: Re: session is NULL To: "Tapestry users" Date: Wednesday, November 10, 2010, 1:04 AM Hi Anas; Have you added the tapestry-hibernate dependency on your pom.xml? On Wed, Nov 10, 2010 at 12:52 AM, Anas Mughal wrote: > I have setup my Tapestry project using the Mav

Re: session is NULL

2010-11-09 Thread Josh Kamau
Hi Anas; Have you added the tapestry-hibernate dependency on your pom.xml? On Wed, Nov 10, 2010 at 12:52 AM, Anas Mughal wrote: > I have setup my Tapestry project using the Maven archetype. Then, I setup > my hibernate.cfg.xml file with references to my hibernate mapping files. (I > am not usin