Is attributeCollection broken in CF 9 ?
Hi, I have a custom tag which is calling another CFX tag, and passing attributes via the attributeCollection attribute, ie: CFX_MyCFX attributeCollection=#attributes# It has been working for years under CF 7 and 8, but now under CF 9, I get an error: The tag does not have an attribute called attributecollection. which means that the list of attributes has not been passed as a collection of attributes, but as a regular attribute named attributeCollection Any hint ? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335796 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
The tag does not have an attribute called attributecollection. I tried a simple test and got the error in both CF8 and CF9 when attributeCollection was used. !--- works --- CFX_TEST Name=blah !--- fails --- cfset attr = structNew() cfset attr[Name] = Blah CFX_TEST attributeCollection=#attr# ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335807 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
I tried a simple test and got the error in both CF8 and CF9 when attributeCollection was used. Hmmm. May be I did not try it under CF 8. But I'm sure it worked for years under CF 7. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335810 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
Google = friend: When googling CF8 cfx attributecollection I came across this: http://www.webmasterkb.com/Uwe/Forum.aspx/coldfusion-advanced/11701/CF-8-upgrade-Existing-CFX-not-working At first glance seems identical to your issue. On Wed, Jul 28, 2010 at 1:01 PM, wrote: I tried a simple test and got the error in both CF8 and CF9 when attributeCollection was used. Hmmm. May be I did not try it under CF 8. But I'm sure it worked for years under CF 7. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335811 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
At first glance seems identical to your issue. It is indeed, except for the error message itself. In this thread, the message is that attributeCollection is an attribute being used that is not supposed to be used in conjunction with other attributes in the tag. Which is weird since there is indeed no other attribute in the call. In my case, it looks like the attributeCollection attribute is not even recognized as a special attribute. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335812 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
Google = friend: Usually yes, but a search for exactly not have an attribute called attributecollection returns noting in any search engine :-( Kind of weird. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335815 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
Which makes me think there's more at play here. Why don't you paste the full error message and the code. On Wed, Jul 28, 2010 at 1:53 PM, wrote: Google = friend: Usually yes, but a search for exactly not have an attribute called attributecollection returns noting in any search engine :-( Kind of weird. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335816 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
Why don't you paste the full error message and the code. I already posted it in my first post. The full error message is The tag does not have an attribute called attributecollection. on the line: CFX_MyCFX attributeCollection=#attributes# This line is inside a standard CF_custom tag, then the attributes scope exists. The error complains that this CFX tag has no attribute called attributeCollection, which is true, and obviously, attributeCollection is treated as an ordinary attribute by the CF compiler before calling the CFX, instead of passing every attribute in the structure to the CFX tag. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335817 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
Are you use that is supported in CFX tags? From what I know, that feature was only supported for CFML custom tags. On Wed, Jul 28, 2010 at 1:07 PM, wrote: Why don't you paste the full error message and the code. I already posted it in my first post. The full error message is The tag does not have an attribute called attributecollection. on the line: CFX_MyCFX attributeCollection=#attributes# This line is inside a standard CF_custom tag, then the attributes scope exists. The error complains that this CFX tag has no attribute called attributeCollection, which is true, and obviously, attributeCollection is treated as an ordinary attribute by the CF compiler before calling the CFX, instead of passing every attribute in the structure to the CFX tag. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335818 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
You don't have robust exception handling enabled? On Wed, Jul 28, 2010 at 2:07 PM, wrote: Why don't you paste the full error message and the code. I already posted it in my first post. The full error message is The tag does not have an attribute called attributecollection. on the line: CFX_MyCFX attributeCollection=#attributes# This line is inside a standard CF_custom tag, then the attributes scope exists. The error complains that this CFX tag has no attribute called attributeCollection, which is true, and obviously, attributeCollection is treated as an ordinary attribute by the CF compiler before calling the CFX, instead of passing every attribute in the structure to the CFX tag. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335819 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
Are you use that is supported in CFX tags? At least it was in CF 7. I've been using this tool I developed myself for years. First under CF 5 which called directly the tag for information about ODBC. When I installed CF 7, may be 5 years ago, I added an extra level to get information about JDBC as well. This code has been working fine ever since under CF 7. I use it may be every day. Just some days ago, I upgraded to CF 9, and it does not work any more. I also tested CF 8 in some time, but may be not this particular piece of code. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335820 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
You don't have robust exception handling enabled? Yes I have, I always have on my development machine. I had it disabled, and it makes no difference. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335821 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
I'm just saying it seems like an uncharacteristically short error report. Good luck getting it sorted. You are probably just going to have to explicitly set the name of the incoming structure. Now's probably a good time to change that custom tag into a cfc anyway. :D On Wed, Jul 28, 2010 at 2:34 PM, wrote: You don't have robust exception handling enabled? Yes I have, I always have on my development machine. I had it disabled, and it makes no difference. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335822 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
You are probably just going to have to explicitly set the name of the incoming structure. Now's probably a good time to change that custom tag The problem is that many of the attributes are optional, so I would need CFIFs inside the call to the CFX, which is not possible as far as I know. Using attributeCollection was an elegant short cut. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335823 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is attributeCollection broken in CF 9 ?
Are you use that is supported in CFX tags? At least it was in CF 7. The same code definitely works in MX7. So either that was a fluke, or maybe they broke something when they attributeCollection support in CF8? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335824 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm