Always use output="false" in your application.cfc ....
The very first thing in my application is a simple login form and a simple ajax call to validate the user. After I added the application.cfc template it would not work. The call to the cfc would return nothing at all.
So I found various tips about how you should add some code so that onRequest don't mess up your cfc calls. No luck! Then I tried removing onRequest, onRequestStart and even onRequestEnd. Still no luck.
So I Googled and in the end found a blog post that mentions similar problems if you have a application.cfm file that has any html output. This got me thinking, and I quickly put output="false" in my cfcomponent tag :
Why did I not have it there in the first place you might ask. Well, I copied the application.cfc template from the CF7 live docs.
Another lesson learned.


<cfcomponent output="false">
in component
<cffunction name="test">
in function
</cffunction>
</cfcomponent>
The only thing that printed was 'in function'.
Thanks.
These links could be helpfull:
http://corfield.org/blog/index.cfm/do/blog.entry/e...
http://www.cfcode.net/blog/post.cfm/important-gotc...