Whew! This is a new one on me! One of those times CF simply isn't making any logical sense to how I understand it. I've even gone through CF10 Application Server and IIS Admin service restarts and still getting the same problem.
In short, I have a template component which has a variable called rawCode. It is the current request's generated HTML that is to be output to the buffer. I am inside a method inside the template component, and I dump: THIS.rawCode.
Sure enough, it contains what I expect.
I then call a method from within this method (that method exists in the template component as well)
<cfinvoke component="#THIS#" method="writeOutputToBuffer">
All that method does right now is:
<cfoutput>#THIS.rawOutput#</cfoutput>
But guess what? At that point, there's nothing! Nothing is presented to the user. I had it dump THIS.rawCode and BOOM, the rawCode is there and populated with what I wante returned to the user. Has anyone seen something like this before? I'm sure there's some rare thing I'm doing wrong here, like some recently unknown "CF10 can only support referencing a variable 20 times per request" rule or something as crazy.