Cheers Sean, I think I've managed to confuse myself and you at the same time... :)
> Simple - store the instances *inside* the objectStore: Yes, I've done this, thanks for the pointer. > The child object now knows who its parent is and can call > methods on it I was actually doing this from the start - "registering" the parent object (in this case the objectStore) with the child (any object created by the store): each "child" object extends a base.cfc which includes an init() function which stores the reference to the objectStore as an instance variable of the child object. > The page context bug means that if you have a CFC > instance in a shared scope, *that* CFC instance cannot > reference shared scopes on subsequent requests So having the "child" storing a reference to the "parent" (objectStore) as an instance variable, even if the objectStore is an instance held in the application scope, avoids any problems with page context, yes? Phew, at the end of all that it looks like I did good in the first place! :D After all that, does it sound like a sensible way to go? Tim. ------------------------------------------------------- RAWNET LTD - Internet, New Media and ebusiness Gurus. Visit our new website at http://www.rawnet.com for more information about our company, or call us free anytime on 0800 294 24 24. ------------------------------------------------------- Tim Blair Web Application Engineer, Rawnet Limited Direct Phone : +44 (0) 1344 393 441 Switchboard : +44 (0) 1344 393 040 ------------------------------------------------------- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. ------------------------------------------------------- ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
