Web News

Smart City deal inked: to firm ties between Kerala...
The much-delayed Rs.15 billion ($350 million)-Smart City project between the Kerala government and Dubai Internet City (DIC), aiming to put Kerala on the global...

Maran's tenure saw Indian telecom's growth bloss
His proximity to DMK chief M. Karunanidhi secured IT and Communications Minister Dayanadhi Maran a berth in Prime Minister Manmohan Singh's cabinet. And this...

Emerging tech from Microsoft could reduce costs in...
Discovery News is reporting on new technology being developed by Microsoft Research India that would allow two users to easily share a single desktop. The solution is completely software based and requires only the...

Oracle's buyouts offer a multi-billion promise
Oracle Inc has made 32 acquisitions in the last 34 months, including of India’s i-flex solutions. The second-largest software maker in the world coughed up...


05.14.07


Dynamic Arguments & Attributes In ColdFusion

By Raymond Camden

One of the announced features for ColdFusion 8 is support for dynamically passing attributes to ColdFusion tags.

This will be a godsend for tags like CFMAIL. A reader asked me (and by the way, folks, don't ask me about Scorpio, in general I can't answer) if this support carried over to cfmodule and custom tags.

This is actually something that has been supported in ColdFusion for quite some time. I don't have the exact version it was added to ColdFusion, but custom tags have had support for 'attributeCollection' for a while. Consider this simple custom tag:



You will see a struct with 2 keys, name and age. However, you can get the same result like so:



Try a Better Way Today.
Try WebEx MeetMeNow -
Click Here

At the same time, ColdFusion UDFs support an argumentCollection value. Consider this example:



This returns a structure much like the custom tag example. Now imagine we call it like so:



This will return the same structure as well. (Although to be clear - the case of the structs keys is different, but you should not be relying on struct key case anyway.)

Comments

About the Author: Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com

Raymond Camden is Vice President of Technology for roundpeg, Inc. A long time ColdFusion user, Raymond has worked on numerous ColdFusion books and is the creator of many of the most popular ColdFusion community web sites. He is an Adobe Community Expert, user group manager, and the proud father of three little bundles of joy.

About DevWebPro India
DevWebPro India is for professional developers ... those who build and manage applications and sophisticated websites. DevWebPro India delivers via news and expert advice New Strategies In Development.

DevWebPro India is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com NetworkNewz.com


-- DevWebPro India is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2007 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


New Strategies In Development DevWebPro India News Archives About Us Feedback DevWebPro India Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact