I didn't suggest setting the type/returntype to "any"; I just
suggested using an unqualified component name ("User") instead of a
fully-qualified component name ("com.company.app1.User"). It should
only be an issue if you have two CFCs of the same name in different
packages. That seems like a fair compromise between using a
fully-qualified component name and type/returntype="any".
-Cliff
On 3/16/06, Mark Mandel <[EMAIL PROTECTED]> wrote:
> I much prefer being able to specify the type of the Component I am passing,
> and this is primarily for documentation purposes.
>
> Yes you can work fine by setting it to 'any', and then living with developer
> guidlines to ensure the right object is passed through, but I personally
> find this kinda cludgy.
>
> Just my opinion of course.
>
> Mark
>
>
> On 3/17/06, Cliff Meyers <[EMAIL PROTECTED]> wrote:
> > Alternatively you can just put the component name in the cfargument
> > type attribute or cffunction returntype attribute. So instead of
> > "com.company.app.User" you could just list "User" instead. This gives
> > you some flexibility as to the path (aka "package") of the CFC is
> > although if you have two "User" cfcs in different packages they would
> > both be valid which you probably don't want. I don't see that as a
> > major issue though. I'm not sure what the implications of this
> > approach are for CFCs that inherit from another CFC though.
> >
> > No matter which way you go, I would strongly consider getting a local
> > development environment set up. The upfront investment will save you
> > time and headaches in the long run.
> >
> >
> > -Cliff
> >
>
> --
> E: [EMAIL PROTECTED]
> W: www.compoundtheory.com
> ICQ: 3094740
> ----------------------------------------------------------
> 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).
>
> 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).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]