I think what Barney had in mind was something like this: <cffunction name="beginTransaction" > <cftransaction action="begin"/> </cffunction>
<cffunction name="endTransaction" > <cftransaction action="commit"/> </cffunction> > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jon Gunnip > Sent: Thursday, December 04, 2003 2:56 PM > To: [EMAIL PROTECTED] > Subject: Re: [CFCDev] cftransaction with CFC's > > > > > Oops, I had a typo in my post: > > beginTransaction() should be > > <cffunction name="beginTransaction" > > <cftransaction> > </cffunction> > > That is not the cause of the problem. I can't have a lone > closing </cftransaction> tag in the endTransaction() function. > > Jon > > >>> [EMAIL PROTECTED] 12/04/03 12:45PM >>> > > Hello, > > A couple months ago, Barney suggested a way to do transaction > management with objects. > > >From Barney's post > >(http://www.mail-archive.com/[EMAIL PROTECTED]/msg02375.html): > > <begin_ post> > PersonManager.beginTransaction() would look like this: > > method beginTransaction() { > getPersonPersistor.beginTransaction(); > } > > ... > > In PersonPersistor, the method would contain a single > CFTRANSACTION tag if you're using a transactional database... > </end_post> > > > I have tried to implement this but when I try to write the > PersonPersisotr.beginTransaction() and > PersonPersistor.endTransaction() with functions like this: > > <cffunction name="beginTransaction" > > </cftransaction> > </cffunction> > > <cffunction name="endTransaction" > > </cftransaction> > </cffunction> > > I get a CF parsing error: "Context validation error for tag > cftransaction: The end tag </cftransaction> encoutered on > line 253 at column 19 requires a matching start tag." > > > I hope that if I could get by the CF parser, then the code > would function as expected. Does anyone know how to "trick" > the parser into allowing a lone </cftransaction> tag? Or is > this hopeless? > > > Thanks, > Jon > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported > by Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[EMAIL PROTECTED] > > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported > by Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[EMAIL PROTECTED] > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
