Actually, Dave, I think you misread him, and Jason, tell me if I'm wrong.
Jason was saying that if you do:

<CF_Foo/>, CF never sets the ThisTag.GeneratedContent variable. It does,
however, correctly run foo twice and correctly sets ThisTag.ExecutionMode,
but it never sets GeneratedContent. Does XML work this way? Ie, does XML
consider a 'shortcut' tag like this to not have any output? Otherwise, this
may be a real bug.

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Allaire

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda


> -----Original Message-----
> From: Dave Watts [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 20, 2000 6:55 PM
> To: Spectra-Talk
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: Spectra Issue?
>
>
> Hi, Jason!
>
> > I'm wondering what the community thinks about this before I
> > submit it as a bug. I've had this issue in the past with the
> > new custom tag format (well, it may not be new to some of you,
> > but those who wrote pre CF 4.0 code...)
> >
> > Maybe this is simply a mis-understanding on my part, but I am
> > under the impression that a closed markup tag is formatted as:
> >
> > <br/>
> >
> > Meaning there will be no closing tag following. Why is it that
> > CF ignores the generatedContent property of the "thisTag" scope
> > when you use this format? i.e. when you code an <cfa_contentObject
> > method="blah"/> (with the closing slash) the method is executed
> > twice!
> >
> > I've not done alot of research into this, but superficially
> > this seems to be a problem.
>
> Actually, that's the way custom tags are supposed to work. When
> you use the
> XML-style closing slash, you're putting in a closing tag for your element.
> So, this:
>
> <cf_foo></cf_foo>
>
> is equivalent to this:
>
> <cf_foo />
>
> The closing slash is equivalent to an end tag. This is important behavior
> when using ThisTag.ExecutionMode to determine how code should be executed
> within the custom tag; it's common to execute code during the end
> mode, but
> without the closing slash, there is no end mode!
>

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to