0

Quick CFC Gotcha

code, ColdFusion, CFC

Lets say you have a bean for an employee and it has getFirstName and setFirstName and lets you forget to put parenthesis like this

<input type="Text" name="firstname" id="firstname" value="<cfoutput>#employeeBean.getFirstname#</cfoutput>" />
at then end when calling getFirstName you might expect to get an error but you wont you will get this
<input type="Text" name="firstname" id="firstname" value="cfemployee2ecfc490364409$funcGETFIRSTNAME@25a2fe" />
I am not sure why so if anyone knows why please leave a comment.

tags:
ColdFusion, CFC

Search

Matt  Graf
View Matt Graf's profile on LinkedIn