RE: can any one help me out with thisTag.executionmode samples

2006-11-15 Thread Bobby Hartsfield
This is the first thing I put in a custom tag.

cfif thistag.executionMode NEQ start
cfexit method=exittag /
/cfif

 
..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


 

-Original Message-
From: Senthil D [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 15, 2006 7:22 AM
To: CF-Talk
Subject: can any one help me out with thisTag.executionmode samples

Hi,

Can any one help me out with thisTag.executionmode samples. I'm getting
executionmode is undefined when I started using.

Thanks



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260485
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: can any one help me out with thisTag.executionmode samples

2006-11-15 Thread Ben Nadel
It sounds like you are not calling the tag as a custom tag. If you try
to run this template as a standard ColdFusion template, then you will
get this error. THISTAG.ExecutionMode is only available when the
template is run using:

CF_CUSTOMTAG notation

CFMODULE tag

CFIMPORT tag 

How are you running your tag? 


..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-Original Message-
From: Senthil D [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 15, 2006 7:22 AM
To: CF-Talk
Subject: can any one help me out with thisTag.executionmode samples

Hi,

Can any one help me out with thisTag.executionmode samples. I'm getting
executionmode is undefined when I started using.

Thanks



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260490
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: can any one help me out with thisTag.executionmode samples

2006-11-15 Thread Senthil D
Here is my problem exactly:

cfcomponent
cfinclude ...
cfcomponent

For some reason the cfinclude is called twice (Note: there is no duplicate 
includes/ close tag error

I got suggestions to put ifTag.executionmode check for cfinclude.

Is this is the right way to do it.

Thanks

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260495
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: can any one help me out with thisTag.executionmode samples

2006-11-15 Thread Teddy Payne
Custom tags have 3 execution modes: Start, Inactive and End.  Inactive does
not process code execution implicitly, which makes sense why it is called
inactive.

Start and end will both execute whatever is passed to it.  Start is
typically used to prepare code execution.  Consider the start mode your
initilization.  The end execution is typically where you will process most
of what your tag is supposed to do.

cfswitch expression=#thisTag.ExecutionMode#
   cfcase value=start
   /cfcase
   cfcase value=end
   /cfcase
/cfswitch

Here is a simple example of where to put code for each execution mode.

Teddy




On 11/15/06, Senthil D [EMAIL PROTECTED] wrote:

 Here is my problem exactly:

 cfcomponent
 cfinclude ...
 cfcomponent

 For some reason the cfinclude is called twice (Note: there is no duplicate
 includes/ close tag error

 I got suggestions to put ifTag.executionmode check for cfinclude.

 Is this is the right way to do it.

 Thanks

 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260497
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: can any one help me out with thisTag.executionmode samples

2006-11-15 Thread Raymond Camden
Actually, if you have a tag that you only want to run in start mode,
just END it with the one line cfexit that you have.

On 11/15/06, Bobby Hartsfield [EMAIL PROTECTED] wrote:
 This is the first thing I put in a custom tag.

 cfif thistag.executionMode NEQ start
 cfexit method=exittag /
 /cfif


 ..:.:.:.:.:.:.:.:.:.:.:.
 Bobby Hartsfield
 http://acoderslife.com




 -Original Message-
 From: Senthil D [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 15, 2006 7:22 AM
 To: CF-Talk
 Subject: can any one help me out with thisTag.executionmode samples

 Hi,

 Can any one help me out with thisTag.executionmode samples. I'm getting
 executionmode is undefined when I started using.

 Thanks



 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260502
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: can any one help me out with thisTag.executionmode samples

2006-11-15 Thread Bobby Hartsfield
At the end I suppose?

I startedusing that because tags ran twice when I used the self closing
format... cf_mytag /

 
..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com



-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 15, 2006 10:02 AM
To: CF-Talk
Subject: Re: can any one help me out with thisTag.executionmode samples

Actually, if you have a tag that you only want to run in start mode,
just END it with the one line cfexit that you have.

On 11/15/06, Bobby Hartsfield [EMAIL PROTECTED] wrote:
 This is the first thing I put in a custom tag.

 cfif thistag.executionMode NEQ start
 cfexit method=exittag /
 /cfif


 ..:.:.:.:.:.:.:.:.:.:.:.
 Bobby Hartsfield
 http://acoderslife.com




 -Original Message-
 From: Senthil D [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 15, 2006 7:22 AM
 To: CF-Talk
 Subject: can any one help me out with thisTag.executionmode samples

 Hi,

 Can any one help me out with thisTag.executionmode samples. I'm getting
 executionmode is undefined when I started using.

 Thanks



 



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260509
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4