G'day.
I've got a method that I've set the returntype to be
"WEB-INF.cftags.component": ie: a component instance... Not a type of
component in particular, but definitely a component instance.  The
method caches an object in [a scope], and returns it (or simply returns
it if it's already cached, etc).

Now, this works fine.  Most of the time (like: 99 times out of 100...
Probably more than that, even).

Sometimes I get an error saying an object instance isn't of type
"WEB-INF.cftags.component".  Yet if I stick some debug code in
immediately before the return statement, it *is* the object in
question... It's fully functional.  But when I come to return it...
Bang.

I note this only happens when I've passed in the CFC's name in
"shorthand": cacheIt(cfc="foo"), rather than
cacheIt(cfc="the.full.path.to.foo").

So what's going on there?  Any thoughts?

I know I could put a returntype="any", and it works fine, but I don't
want to do that for the same reason we'd not advocate specifying a
returntype of ANY for all functions.



Adam Cameron
Senior Application Developer
Straker Interactive

E: [EMAIL PROTECTED]
T: +64 9 3095252
F: +64 9 3092797
W: www.straker.co.nz

----------------------------------------------------------
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]

Reply via email to