first question: why are you making the argument default to "" if it is required?

On 6/8/05, Dave Cordes <[EMAIL PROTECTED]> wrote:
I'm running into a small problem when trying to use cflocation. It's working properly but my onRequest method is throwing an error.
 
Here is what my onRequest method looks like in my Application.cfc.
 
<cffunction name="onRequest">
<cfargument name="targetTemplate" type="string" required="yes" default="" />
<cfinclude template="#arguments.targetTemplate#">
</cffunction>
 
And here is the error I'm receiving.
 
Detail: An exception occurred when invoking a event handler method from Application.cfc The method name is: onRequest.
Message: Empty String
 
Then it points to the line with the cflocation code inside my template and the line in the Application.cfc that does the onRequest with the cfinclude.

Any ideas?

Thanks,

--
Dave Cordes
www.apoktechnology.com
636-412-1086 (Office)
636-578-4235 (Mobile)
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone ( www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to