I swear this is something I may have covered before, but I'm not finding it in my archives. Either way, it's a good tip and I wanted to share it. Markus Wollny was working with a CFDIV tag that was bound to a CFC:
The problem he ran into was refreshing the data in the grid. Normally a bound CFDIV (or other UI item) would 'listen' in to a particular form field and notice when it changed. In his case, there was no form field included in the bind.
To get around this, he simply used ColdFusion.navigate on the DIV and switched to a URL version of his CFC:
In order for this to work the CFC has to return a string as a result, and unless the cffunction tag declares it explicitly, you will need to use a returnFormat of plain:
Thanks for sharing this, Markus.
Comment 1 written by Andy Sandefer on 26 May 2009, at 5:16 PM
Comment 2 written by Robert Haddan on 27 May 2009, at 9:28 AM
Great tip!!!
Comment 3 written by Jody Fitzpatrick on 3 June 2009, at 9:29 PM
Comment 4 written by Raymond Camden on 4 June 2009, at 6:04 AM