That still doesn't really answer the question for me. I don't know what the CFC descriptor is. Is that the Java method used to display cfdump output for a CFC?
> The CFC descriptor uses hint, for example, to add to the > documentation > displayed. If you were building your own descriptor, you > design a set of > args that you would use that your descriptor would pick up > on. > ========================================================== > ============= > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > Member of Team Macromedia > Email : [EMAIL PROTECTED] > Blog : www.camdenfamily.com/morpheus/blog > Yahoo IM : morpheus > "My ally is the Force, and a powerful ally it is." - Yoda >> -----Original Message----- >> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, February 26, 2003 1:32 PM >> To: CF-Talk >> Subject: RE: >> cffunction_arguments_"[undefined_struct_element]"_--_what >> _the_hell?_ >> >> >> mmm... okay... that's interresting... >> >> So beyond the syntax in the cffunction tag, how and why >> would >> you reference that information? >> >> I guess I'm not sure what use the extra meta data is. >> >> I also noticed that the hint attribute of the cffunction >> tag >> isn't mentioned in the list of attributes or in the >> example >> in the livedocs, but it does appear in the "usage" >> section. >> Is this an example of extra metadata? Iirc the hint >> appears >> in a cfdump of the function right? >> >> > When it comes to cfcomponent, function, and argument, >> > mx >> allows random >> > crap that gets appended to the metadata. So, you can do >> > stuff like: >> >> > <cffunction >> > name="foo" >> > returnType="array" >> > weather="sunny" >> > use="theforce"> >> >> > ======================================================= >> > === >> > ============= >> > Raymond Camden, ColdFusion Jedi Master for Mindseye, >> > Inc Member of >> > Team Macromedia >> >> > Email : [EMAIL PROTECTED] >> > Blog : www.camdenfamily.com/morpheus/blog >> > Yahoo IM : morpheus >> >> > "My ally is the Force, and a powerful ally it is." - >> > Yoda >> >> >> -----Original Message----- >> >> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] >> >> Sent: Wednesday, February 26, 2003 10:51 AM >> >> To: CF-Talk >> >> Subject: RE: >> >> cffunction_arguments_"[undefined_struct_element]"_--_w >> >> hat >> >> _the_hell?_ >> >> >> >> >> >> > <cfargument name="no" type="string" defualt="New"> >> >> > <cfargument name="yes" type="string" >> >> > default="Edit"> >> >> >> >> Is that not still a bug? Should the CF parser not >> >> throw >> >> an >> >> error on the invalid property? >> >> >> >> > You mispelled default in your second argument - >> >> > therefore >> >> > a default >> >> > value was not created. >> >> >> >> > ==================================================== >> >> > === >> >> > === >> >> > ============= >> >> > Raymond Camden, ColdFusion Jedi Master for Mindseye, >> >> > Inc Member of >> >> > Team Macromedia >> >> >> >> > Email : [EMAIL PROTECTED] >> >> > Blog : www.camdenfamily.com/morpheus/blog >> >> > Yahoo IM : morpheus >> >> >> >> > "My ally is the Force, and a powerful ally it is." - >> >> > Yoda >> >> >> >> >> -----Original Message----- >> >> >> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] >> >> >> Sent: Tuesday, February 25, 2003 7:43 PM >> >> >> To: CF-Talk >> >> >> Subject: >> >> >> cffunction_arguments_"[undefined_struct_eleme >> >> >> nt]"_--_what >> >> >> _the_hell?_ >> >> >> >> >> >> >> >> >> I'm working with a function that's designed to >> >> >> return >> alternative >> >> >> values for "yes" or "no" from >> >> >> yesnoformat() >> >> >> >> >> >> I have this code: >> >> >> >> >> >> <cffunction name="alttext" returntype="string"> >> >> >> <cfargument name="itemid" type="string" >> >> >> required="true"> >> >> >> <cfargument name="no" type="string" defualt="New"> >> >> >> <cfargument name="yes" type="string" >> >> >> default="Edit"> >> >> >> >> >> >> <cfset var istrue = false> >> >> >> <cfset arguments["No"] = arguments[2]> >> >> >> <cfset arguments.no = arguments[2]> >> >> >> <cfdump var="#arguments#"> >> >> >> >> >> >> <cfif not isnumeric(itemid)> >> >> >> <cfset itemid = len(trim(itemid))></cfif> >> >> >> >> >> >> <cfreturn arguments[yesnoformat(itemid)]> >> >> >> </cffunction> >> >> >> >> >> >> >> >> >> A couple of those lines were added to see if I >> >> >> could >> >> >> work >> >> >> around the problem, which is that where the cfdump >> >> >> is executed, >> >> >> the value shown for arguments.no is "[undefined >> >> >> struct element]" ... What I don't understand is >> >> >> -- if the key exists, how is the struct element not >> >> >> defined? >> >> >> And if it was obviously able to get the value of >> >> >> the >> >> >> key >> >> >> "no" >> >> >> from the cfargument tag, why was it not able to get >> >> >> the >> >> >> default value "New"? >> >> >> >> >> >> Incidentally, no exception is thrown when the value >> >> >> is false, >> >> >> it just returns an empty string. >> >> >> >> >> >> Any help greatly appreciated. >> >> >> >> >> >> s. isaac dealey 954-776-0046 >> >> >> >> >> >> new epoch >> >> >> http://www.turnkey.to >> >> >> >> >> >> lead architect, tapestry cms >> >> >> http://products.turnkey.to >> >> >> >> >> >> tapestry api is opensource >> >> >> http://www.turnkey.to/tapi >> >> >> >> >> >> certified advanced coldfusion 5 developer >> >> >> http://www.macromedia.com/v1/handlers/index.cf> >> >> >> m?ID=21816 >> >> >> >> >> >> >> >> >> >> >> >> >> >> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> > ~~~ >> >> > ~~~ >> >> > ~~~~~~~~~~~| >> >> > Archives: http://www.houseoffusion.com/cf_lists/inde >> >> > x.cfm?forumid >> >> > =4 >> >> > Subscription: >> >> > http://www.houseoffusion.com/cf_lists/index. >> >> > cfm?method=subscribe&forumid=4 >> >> > FAQ: http://www.thenetprofits.co.uk/coldfusion/faq >> >> > Structure your ColdFusion code with Fusebox. Get the >> >> > official book at >> >> > http://www.fusionauthority.com/bkinfo.cfm >> >> >> >> > Unsubscribe: >> >> http://www.houseoffusion.com/cf_lists/uns >> >> > >> >> ubscribe.cfm?user=633.558.4 >> >> >> >> >> >> >> >> s. isaac dealey 954-776-0046 >> >> >> >> new epoch http://www.turnkey.to >> >> >> >> lead architect, tapestry cms >> >> http://products.turnkey.to >> >> >> >> tapestry api is opensource >> >> http://www.turnkey.to/tapi >> >> >> >> certified advanced coldfusion 5 developer >> >> http://www.macromedia.com/v1/handlers/index.cfm?ID=218 >> >> 16 >> >> >> >> >> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> > ~~~ >> > ~~~~~~~~~~~| >> > Archives: http://www.houseoffusion.com/cf_lists/index.c >> > fm?forumid=4 >> > Subscription: >> > http://www.houseoffusion.com/cf_lists/index. >> > cfm?method=subscribe&forumid=4 >> > FAQ: http://www.thenetprofits.co.uk/coldfusion/faq >> > Get the mailserver that powers this list at >> > http://www.coolfusion.com >> >> > Unsubscribe: >> http://www.houseoffusion.com/cf_lists/uns >> > >> ubscribe.cfm?user=633.558.4 >> >> >> >> s. isaac dealey 954-776-0046 >> >> new epoch http://www.turnkey.to >> >> lead architect, tapestry cms http://products.turnkey.to >> >> tapestry api is opensource http://www.turnkey.to/tapi >> >> certified advanced coldfusion 5 developer >> http://www.macromedia.com/v1/handlers/index.cf> >> m?ID=21816 >> >> >> >> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~~~~| > Archives: > http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 > Subscription: http://www.houseoffusion.com/cf_lists/index. > cfm?method=subscribe&forumid=4 > FAQ: http://www.thenetprofits.co.uk/coldfusion/faq > Signup for the Fusion Authority news alert and keep up > with the latest news in ColdFusion and related topics. > http://www.fusionauthority.com/signup.cfm > Unsubscribe: http://www.houseoffusion.com/cf_lists/uns > ubscribe.cfm?user=633.558.4 s. isaac dealey 954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to tapestry api is opensource http://www.turnkey.to/tapi certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4