If you think your architecture through carefully, you will probably find
that not only is it un-necessary to have a variable in the extends
attribute, but that it actually gives you a lot more control over the
maintainability application in the longer term. I believe that this is why
it is implemented the wya it is. Not to try to help you out, but because the
underlying system on which CFMX is built works in exactly this way with
regards to extending components. If it's good enough for Java, it's good
enough for me.

Can you explain why it's a huge negative point?

What other object based systems have you worked with that allowed you to
dynamically specify which component/class/module you are extending?

I'm not sure what you mean when you say "Another problem is the use of
overloaded and overridden methods"  Can you explain what the problem is and
what it is you are trying to do?

Spike

--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org 


 

>-----Original Message-----
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of Jurgen Stillaert
>Sent: Monday, May 24, 2004 10:39 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [CFCDev] component extends object with relative path
>
>You can't use a variable in the extends attribute. If you do, 
>an error like "This expression must have a static value." pops up.
>
> 
>
>That's a pitty. For development reasons, for me it's a huge 
>negative point in the Object Based approach of Macromedia.
>
>Another problem is the use of overloaded and overridden 
>methods. I know the solution is to use optional variables, but 
>that's just good enough. Someone knows another solution for that?
>
> 
>
>-----Original Message-----
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of Lucian COZMA
>Sent: maandag 24 mei 2004 17:17
>To: [EMAIL PROTECTED]
>Subject: [CFCDev] component extends object with relative path
>
> 
>
>Hello all.
>
> 
>
>I want to create a cfc that extents another cfc located in a 
>relative path (non-mapped) as shown below:
>
>/
>  models/porsche.cfc
>  vehicles/car.cfc
>
>I want that porsche.cfc extends vehicles/car.cfc:
><cfcomponent extends="../vehicles/car>
>
>I know that it doesn't work , but is there a way of doing such 
>a thing ?
>
>I cannot use full-package names (mysite.site1.vehicles.car), 
>as the path is unknown and there is a whole lotta' mess in the 
>placements of the components in the existing application .
>Should I extract the class name from the path and use it 
>dynamically in the 'extends' attribute (like: 
>extends="#myClassPath#") ?
>
>On the same page, a related question, is there any way of 
>adding programatically a mapping (not using the Administrator) ?
>
> 
>
>Thanks,
>
>Lucian @ InterAKT Online
>
> 
>
> 
>
>

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