-
1. Re: Using 'variables.instance' structure and implicit getters/setters
Carl Von Stetten Dec 13, 2013 10:37 AM (in response to Aegis Kleais)Yes, nesting the component's variables into a custom structure (like variables.instance or variables.my) will break the implicit getter/setter functionality. You'll have to explicitly create getter and setter methods.
-Carl V.
-
2. Re: Using 'variables.instance' structure and implicit getters/setters
Aegis Kleais Dec 13, 2013 10:47 AM (in response to Carl Von Stetten)Thanks for the confirmation Carl.
How cool, then, would it be if ColdFusion 11 supported something like:
<cfcomponent
accessors="true"
implicitpropertyprefix="my."
...
That way I could specify "my." as the property prefix and when it goes to create those implicit getters and settings, it will concatenate that into 'variables.my.' as the prefix when it alters property values or returns them.
-
3. Re: Using 'variables.instance' structure and implicit getters/setters
Carl Von Stetten Dec 13, 2013 10:53 AM (in response to Aegis Kleais)Sounds like a great Enhancement Request to put in the bug tracker.
-Carl V.
-
4. Re: Using 'variables.instance' structure and implicit getters/setters
Aegis Kleais Dec 13, 2013 11:04 AM (in response to Carl Von Stetten)To the bug tracker! *rushes off*
** UPDATE ** Hmm, seems cfbugs.adobe.com is resetting the connection repeatedly. <philosophical>Can one submit a bug into a bug reporting system that is experiencing a bug?</philosophical>



