This content has been marked as final.
Show 3 replies
-
1. Re: CF 8 attributeCollection support for CFX tags
cf_dev2 Nov 23, 2007 12:48 AM (in response to Arun_Nallan)quote:
I honestly believe that this is not Java related as Java is/was pre-compiled. This is error is being raised even before the CFX or even CFC is actually getting executed. This is kind of like a pre-compile or semantic error.
You're right. The error is raised before any CF code is executed.
I don't know whether this is deliberate or not. Either the CF 8 documentation is wrong (and it is not allowed for CFX tags) . or this might be a bug.
http://livedocs.adobe.com/coldfusion/8/htmldocs/Elements_04.html
As a work around, you could always pass in your own structure of attributes into the tag and extract them manually. -
2. Re: CF 8 attributeCollection support for CFX tags
Arun_Nallan Nov 29, 2007 8:41 AM (in response to cf_dev2)You seem to be along my side. I agree with you. I shall try the work around you mentioned.
Additionally, the same CFX tag used to work before we went in for CF8. Hence, I think this is a bug. I also report the same as a bug to Adobe. I get no replies from them till now if or not they are working on it.
We are thinking to roll back to version 7 due to this. I will try the work around. If that works, thats good.
Regardless of the workaround, I think Adobe needs to come up with a fix to this as this is a regression problem. -
3. Re: CF 8 attributeCollection support for CFX tags
cf_dev2 Nov 29, 2007 2:43 PM (in response to Arun_Nallan)I don't know if its deliberate or a bug. Assuming attributeCollection is a documented attribute of all custom tags (including CFX) then that would suggest a bug to me.
A workaround shouldn't be too difficult. The request class has few methods and most are already built-in methods of the Hashtable class. Example request.attributeExists() > Hashtable.containsKey().
You might even try creating a local copy of DebugRequest just inside the processRequest method. You could pass your structure of attributes into the constructor and use it locally to get the attributes. I haven't tried it but it might work for you.