It's not working like you are suggesting in that after I add a property to
the parent CFC the child still does not recognize new property.  In my test
page, I am creating a parent and a child object and the child page never
recognizes the new parent property. 

I can make changes to the parent structure and it's never recognized in the
child until I go in and make a change and save child.  This will cause child
to recognize parent modifications.


parent.cfc:
<cfcomponent>
        <cfproperty name="numPersonID" type="numeric"
displayname="PersonID">
        <cfproperty name="txtFirstName" type="string" displayname="First
Name">
</cfcomponent>


child.cfc:
<cfcomponent extends="parent">
        <cfproperty name="ynIsCertified" type="boolean" displayname="Is
Certified" hint="Is Certified">
</cfcomponent>


test.cfm:
<cfscript>
        oParent = createobject("component","parent");
        oChild2 = createobject("component","child");
</cfscript>

<cfdump var="#getmetadata(oParent)#" label="oParent">
<cfdump var="#getmetadata(oChild2)#" label="oChild2">



"Then the program would need to create a new child instance (which would
pick up the recompiled parent)."  - I can't get this to work.  I am doing
this above when instantiating oChil2, right?  Am I missing something
obvious?

Thanks
 
Tom Schreck
972-361-9943

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Sean Corfield
Sent: Tuesday, May 03, 2005 3:29 PM
To: [email protected]
Subject: Re: [CFCDev] CFC and inheritance problem

On 5/3/05, Schreck, Tom <[EMAIL PROTECTED]> wrote:
> So it's a question of when and how the child CFC gets compiled.  Is there
a
> way to programmatically recompile a CFC?  

No.

The program would need to explicitly create a parent object (CFMX
would notice it had been updated on disk and recompile it). Then the
program would need to create a new child instance (which would pick up
the recompiled parent).
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


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


Reply via email to