<CFPROPERTY> Tag - ColdFusion


>> Return to ColdFusion Tag Index

The <CFPROPERTY> tag allows you ...



  <CFPROPERTY> Comments from Macromedia LiveDocsLiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-b18.htm
I think the main difference is that the ones you defin
with cfproperty are exposed in the web service.

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-b18.htm
Whats the difference between <cfproperty> and defining variables in the This scope?

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-b18.htm
"This component represnts a complex data type that can ..."

typo

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-b18.htm
We have submitted bug report 55758 agains the behavior described by CF_NEWBIE.

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-b18.htm
Clarification please. The doc said that I could specify a default value which should conform to the var type. What I'm trying to do is define a cfc property of an array or struct type which are not required. Thus the line look like:

<cfproperty name="cfcArr" type="array" required="no" default="#arrayNew(1)#">


<cfproperty name="cfcStruct" type="struct" required="no" default="#structNew()#">

However, I encounter errors on both cases. With regards to the array, I just receive a "7" as the error message while with regards to the structure I receive: " Complex object types cannot be converted to simple values." The workaround is to define the properties in a <cfscript> as this.cfcStruct = structNew() and this.cfcArr = arrayNew(1) but I thought I should post this here in case someone else is wracking their head over this :D

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-b18.htm
LiveDocs does not receive enough traffic to handle questions such as this. I suggest posting your issue to the online forums:
http://webforums.macromedia.com/coldfusion/

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-b18.htm
Can anyone tell me how to present the following array in a WSDL? With or without using cfproperty.

myArray[1].type = "type1";
myArray[1].id = "1";
myArray[1].value = "value 1";

myArray[2].type = "type2";
myArray[2].id = "2";
myArray[2].value = "value 3";

etc...

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-b18.htm
Remove the #'s.

Another MM example that shows how _not_ to code.



[Top]


Recommended Books

[Top]

Web Sites

[Top]

Copyright © 2003- 2008, Orville Paul Chomer, All Rights Reserved