> I'd hate to have to check the struct everytime the edit handler is called to
> see if the object has just been created and now needs to have the child
> objects embedded.

It is sometimes desirable to not have embedded objects automatically
created. For example suppose you have a newsitem that has an embedded
photo property, or something like that. Then you can do something like

 <cfa_handler object="this">
  <cfif IsDefined("this.photo.objectid")>
   [...]
  </cfif>
  [...]

to check if the object has an embedded photo object or not. I'm not sure
if this is 'legal' but it works. (Well, in 1.0.1 at least - it'll probably
be broken in 1.5 :/ )

Cheers
Michiel

-- 
Michiel Boland <[EMAIL PROTECTED]>
Digital Valley Internet Professionals
Plantsoen 17, Wageningen, The Netherlands
Phone: +31 317 465555, Fax: +31 317 460276


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to