Barry Beattie wrote:

> the whole "this" episode is partly caused by the useless CFPROPERTY
> (except for WS's, admittedly)
...
> where are the real setters and getters? why is CFPROPERTY so useless?

A long time ago...

My understanding is that cfproperty is a hangover from project "Greylock" - at one point CFMX was going to contain a sorta-son-of-Spectra COAPI, and cfproperty was part of that. That didn't go ahead, but cfproperty is actually reasonably useful to framework developers, because the tag and it's attributes are incorporated into the structure returned by getMetaData, which can be used to automatically define database schemas or add property-like behaviour to objects according to what the framework user specifies in their cfproperty tags. Among the truly successful frameworks I think Farcry makes some use of the cfproperty tag.

> <hypothetical type="wishlist">

<cf_fairygodfather>

BTW Barry, your wish is granted! If you check out the framework code I sent you a week or so back it pretty much does this. If you add this to a component:

<cfproperty name="rocketBootId"
                type="varchar"
                required="true"
                displayName="RocketBoot Id"
                hint="UUID of the RocketBoot that made this bootprint">

you can write id = instance.rocketBootId() to get or instance.rocketBootId(id) to set the property and trigger a validation method, or automatically create the properly typed <cfqueryparam> tag when the component is being persisted.

</cf_fairygodfather>


------------------------------------------------- Robin Hilliard Partner RocketBoots Pty Ltd Professional Services for Macromedia Technologies m +61 418 414 341 f +61 2 9798 0070 e [EMAIL PROTECTED] w http://www.rocketboots.com.au -------------------------------------------------

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to