CFFUNCTION and CFARGUMENT don't support new types in ColdFusion 7
April 13, 2005
One thing I just realized today - that is a bummer, is that the new types supported by cfparam, and IsValid (eg integer, email, zipcode) in ColdFusion 7 are not supported by the returntype attribute in CFFUNCTION, and not supported in the type attribute of CFARGUMENT. Whats up with that?
Tweet
Permalink | Add Comment |
add to del.icio.us
| Tags: cffunction, cfargument, cfml, coldfusion 7, cfparam
add to del.icio.us
| Tags: cffunction, cfargument, cfml, coldfusion 7, cfparam
Related Entries
- CFPARAM - New Features in CFMX 7 - February 9, 2005
- 6 Tags for ColdFusion beginners - April 5, 2005
- Hash - March 15, 2005
- Strong Encryption Technote shows undocumented features - February 22, 2005
- CFTIMER - Little things in ColdFusion 7 - February 11, 2005
Trackbacks
Trackback Address: 322/EFB548E26FFE413AD140AC5C99890B0F
Comments
On 04/13/2005 at 7:26:30 PM EDT Uwe Raddatz wrote:
1
That's exactly what I suspected half a year ago (see my comment at http://www.forta.com/blog/index.cfm?mode=e&entry=1386 ). :(
On 04/14/2005 at 11:29:38 AM EDT Mike Nimer wrote:
2
We thought about this, but realized there was one problem with it. WebServices. The cfargument types need to be converted to wsdl types when you ask CF to convert the CFC to a webservice. And wsdl doesn't have an email type or a regex type (with your custom pattern), for example.
This is one reason for isValid(), so you can still run validation inside your cfc methods as needed.
On 04/14/2005 at 11:37:36 AM EDT Pete Freitag wrote:
3
Thanks Mike, that makes sense. Though, some of the types such as integer are WSDL types, and would be useful to be able to specify.
On 04/14/2005 at 12:44:11 PM EDT Mike Nimer wrote:
4
your right. I'll submit an enhancement list to see if we can't add a few of them.
On 04/14/2005 at 12:46:17 PM EDT Pete Freitag wrote:
5
Thanks Mike!
On 04/14/2005 at 1:38:52 PM EDT Uwe Raddatz wrote:
6
How about conditional type attribute options for cfargument tag dependent on cffunction's access attribute? So you could use the new validation types for all functions except such that are used for a webservice.
On 04/20/2005 at 5:42:20 PM EDT Ray Horn wrote:
7
This is a non-problem when coding using <cfscript> functions such as inside components because ColdFusion doesn't care what the types of variables are when processing <cfscript> return types or the like.
I can post samples to demonstrate this if necessary...
On 04/27/2005 at 6:53:39 PM EDT Jordan Clark wrote:
8
Hey Mike, when you convert the CFC to a webservice, why don't you just simplify the new type to whatever it could generically fit in, like a email & zipcode are strings. Then in the generated webservice code automatically call the equivilant of isValid() for the additional validation, instead of making developers repeat the same steps manually in cfml?
Jordan Clark
On 12/20/2011 at 1:56:50 AM EST Takeo wrote:
9
This airtlce went ahead and made my day.
Post a Comment
Recent Entries
- Writing Secure CFML cfObjective 2013 Slides
- Upgrading to Java 7 on Linux
- J2EE Sessions in CF10 Uses Secure Cookies
- Learn about ColdFusion Security at cfObjective 2013
- Session Loss and Session Fixation in ColdFusion
- FuseGuard 2.3 Released
- CKEditor Spell Checker Plugin
- Adobe Says Go Ahead and Upgrade your ColdFusion JVM





