On Saturday, Aug 30, 2003, at 18:50 US/Pacific, S. Isaac Dealey wrote: > Well afaik cfproperty models (to some extent) the way > properties are declared in other OO languages like Java --
Nope, not really. Unless you are writing a Web Service and using cfproperty for additional validation of returned component instances, cfproperty does nothing beyond creating metadata. It has no relation to instance data and the default= attribute does not have an impact whatsoever on the values of that instance data. My advice: don't use cfproperty. > it'd be nice to get the > expected functionality from the tag The problem is that your expectations are incorrect. <cfcomponent> <cfproperty name="foo" type="numeric"/> <cfset this.foo = "I am not numeric" /> </cfcomponent> That's perfectly valid CFML - by design. Sean A Corfield -- http://www.corfield.org/blog/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm