RE: RESOLVED Persistence misbehavior in T4

2006-05-20 Thread Firas A.
bjest, returned by iBatis, before making it available to Tapestry. Cheers, -Original Message- From: Paul Cantrell [mailto:[EMAIL PROTECTED] Sent: den 19 maj 2006 16:57 To: Tapestry users Subject: Re: Persistence misbehavior in T4 Is the Bean shared across pages? If it is a Tapestry @Bean, I r

Re: Persistence misbehavior in T4

2006-05-19 Thread Paul Cantrell
Regards, -Original Message- From: Paul Cantrell [mailto:[EMAIL PROTECTED] Sent: den 18 maj 2006 19:39 To: Tapestry users Subject: Re: Persistence misbehavior in T4 A few general points: -- An "= null" initializer for a non-final field is redundant in all cases. -- You shoul

RE: Persistence misbehavior in T4

2006-05-19 Thread Firas A.
Martin: ...sounds like you simply forgot "CategoryBrowser implements PageDetachListener" No Martin, I didn't. It's through PageDetachListener interface that i become acquainted with pageDetach(). Thanks for your time. -Original Message- Hmm... sounds like you simply forgot "CategoryBro

RE: Persistence misbehavior in T4

2006-05-19 Thread Firas A.
ds, -Original Message- From: Paul Cantrell [mailto:[EMAIL PROTECTED] Sent: den 18 maj 2006 19:39 To: Tapestry users Subject: Re: Persistence misbehavior in T4 A few general points: -- An "= null" initializer for a non-final field is redundant in all cases. -- You should gen

Re: Persistence misbehavior in T4

2006-05-18 Thread Martin
Hmm... sounds like you simply forgot "CategoryBrowser implements PageDetachListener". Tapestry would then not understand that you want it to call pageDetached(...). Martin On Thursday 18 May 2006 19:26, Firas A. wrote: > Hello Everyone! > > I have a class, CategoryBrowser of type BasePage which

Re: Persistence misbehavior in T4

2006-05-18 Thread Paul Cantrell
A few general points: -- An "= null" initializer for a non-final field is redundant in all cases. -- You should generally not need to synchronize access to instance fields of a page. Now a question: In the CategoryBrowser.pageDetached() the ProductCategory property is set to null. Don'

Persistence misbehavior in T4

2006-05-18 Thread Firas A.
Hello Everyone! I have a class, CategoryBrowser of type BasePage which has a transient property, a JavaBean called ProductCategory. ProductCategory makes use of an instance field: private List subCategories = null; This list is initialized in CategoryBrowser upon every request. Every access to