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!
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------
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.