> 1. The "attributes" scope as generated by formurl2attributes
> isn't the Attributes scope, so you can't do loop operations
> over an attributes structure and see all form, url, and
> attributes variables.
I tested this on different CF versions and if I remember correctly, then
CF did actually initialize attributes. as a structure up to some version,
and didn't from 4.5.1 on, I think. So the solution would be to use this
code in the beginning of formURL2attributes.cfm:
<cfif NOT IsDefined("caller.attributes") OR NOT
IsStruct(caller.attributes)>
<cfset caller.attributes = StructNew()>
</cfif>
Erki
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
- RE: Musings on Attributes (was Best Practices...) Patrick McElhaney
- Re: Musings on Attributes (was Best Practices...) Steve Nelson
- Re: Musings on Attributes (was Best Practices...) Jeff Peters
- RE: Musings on Attributes (was Best Practices...) Hal Helms
- RE: Musings on Attributes (was Best Practices...) Nat Papovich
- RE: Musings on Attributes (was Best Practices...) Hal Helms
- RE: Musings on Attributes (was Best Practices...) Toby Tremayne
- RE: Musings on Attributes (was Best Practices...) Hal Helms
- Re: Musings on Attributes (was Best Practices...) Fred T. Sanders
- Re: Musings on Attributes (was Best Practices...) David Huyck
- Re: Musings on Attributes (was Best Practices...) Erki Esken
- Re: Musings on Attributes (was Best Practices...) Steve Nelson
- Re: Musings on Attributes (was Best Practices...) Jeff Peters
- RE: Musings on Attributes (was Best Practices...) Toby Tremayne
- Re: Musings on Attributes (was Best Practices...) Erki Esken
- RE: Musings on Attributes (was Best Practices...) Toby Tremayne
- RE: Musings on Attributes (was Best Practices...) Patrick McElhaney
- RE: Musings on Attributes (was Best Practices...) Strange Tactics
- RE: Musings on Attributes (was Best Practices...) Roger B.
- RE: Musings on Attributes (was Best Practices...) Nat Papovich
- RE: Musings on Attributes (was Best Practices...) Roger B.
