Thanks Eric, that makes sense as to why it is occurring. I am going to shoot for option 2 below as right now I am doing my Hibernate open/close of the session through a servlet filter.
Thanks again, Aaron Bartell -----Original Message----- From: Eric Fesler [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 8:26 AM To: Tapestry users Subject: Re: @For within a @contrib:Table Hi, I already had this issue in the past. It was due to the fact that the leadtagtype (or equivalent) method was called on the leadtag bean after the hibernate session was closed. There are two ways to solve the issue. 1°) Do not use lazy loading for the leadtagtype association 2°) Use the OpenSessionInViewFilter of the Spring framework. This filter opens the session only once per request and close it at the end of the request. --ERic On Wednesday 07 June 2006 19:43, albartell wrote: > I am having an odd issue. When the below executes it obtains > ognl:dataItems just fine, but when it gets to the internal @For loop an error is thrown: > > ognl.OgnlException... source is null for getProperty(null, > "leadtagtype") > > The problem seems to be that the contrib:Table isn't waiting for the > leadtagtype method to be called/loaded (which is lazy loaded by > Hibernate), because when I run it through debug leadtagtype DOES get > called, but not until after the page has rendered. Anybody else ever have this problem? > > <table jwcid="[EMAIL PROTECTED]:Table" source="ognl:dataItems" > > >columns="leadtag,leaduid,firstname,lastname,cmpyname,expirehigh,saleper >cent >, procgroup,serialnbr,model,action" > rowsClass="ognl:beans.evenOdd.next" > pageSize="12"> > > <span jwcid="[EMAIL PROTECTED]"> > <table cellpadding="0" cellspacing="0"> > <tr jwcid="[EMAIL PROTECTED]" > source="ognl:components.table.tableRow.leadtags" value="ognl:leadtag" > element="tr"> > <td> > <span jwcid="[EMAIL PROTECTED]" > value="ognl:leadtag.leadtagtype.name"/> > </td> > </tr> > </table> > </span> > </table> > > Thanks in advance, > Aaron Bartell > http://mowyourlawn.com/blog -- Eric Fesler Technical Director ------------------------------------------------------------------- Audaxis S.A. Tel: +32 (0)2 361.83.01 Fax: +32 (0)2 361.83.11 Mob: +32 (0)478 22.90.78 http://www.audaxis.com PGP Fingerprint : FECF 2841 48B7 47D8 C426 55A4 0A60 FB52 833B 1EF1 Public PGP key : available at server subkeys.pgp.net ------------------------------------------------------------------- In the plot, people came to the land; the land loved them; they worked and struggled and had lots of children. There was a Frenchman who talked funny and a greenhorn from England who was a fancy-pants but when it came to the crunch he was all courage. Those novels would make you retch. -- Canadian novelist Robertson Davies, on the generic Canadian novel. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]