Sorry about that Adam.
Here's my different implementations and resulting errors:
TRY #1
<cfinvoke component="#application.coms.data#" method="executeQuery" argumentcollection="#{ file='get-page-data',vars={module='apps',page='home'}}#" returnvariable="local.pageData">
Error: ColdFusion was looking at the following text:<p>#</p><p>The CFML compiler was processing:<ul><li>The tag attribute argumentcollection, on line 117, column 41.<li>A cfinvoke tag beginning on line 114, column 34.<li>A cfinvoke tag beginning on line 114, column 34.<li>A cfinvoke tag beginning on line 114, column 34.<li>A cfinvoke tag beginning on line 114, column 34.</ul>
TRY #2
<cfinvoke component="#application.coms.data#" method="executeQuery" argumentcollection=#{ file='get-page-data',vars={module='apps',page='home'}}# returnvariable="local.pageData">
Error: ColdFusion was looking at the following text:<p>#</p><p>The CFML compiler was processing:<ul><li>The tag attribute argumentcollection, on line 117, column 41.<li>A cfinvoke tag beginning on line 114, column 34.<li>A cfinvoke tag beginning on line 114, column 34.<li>A cfinvoke tag beginning on line 114, column 34.<li>A cfinvoke tag beginning on line 114, column 34.</ul>
TRY #3
<cfinvoke component="#application.coms.data#" method="executeQuery" argumentcollection="{ file='get-page-data',vars={module='apps',page='home'}}" returnvariable="local.pageData">
Error: java.lang.String cannot be cast to java.util.Map
I've also tried putting the structure on separate lines and indents (for readability) based on the braces { }, cause I thought that wouldn't hurt anything. But for the aforementioned, I put the code all on 1 line.
TRY #1 works fine for me. And that is the syntax I woudl expect to work. That said, the secondone works for me too. I would not expect the third to work, for reasons already stated.
What exact vesion of CF9 are you on? I'm on 9.0.1 (9,0,1,274733 to be precise).
--
Adam