Ahh... I'd not bothered to go and look -- was just throwing an idea off the top of my head... You could of course create a recursive function to create a copy of the data minus the functions. It wouldn't be very efficient, although whether or not efficiency would be needed would depend a great deal on the frequency of serialization. Though in general serializing CFC's isn't a big selling point for me, so I'm not too focused on it.
> quoted from the livedocs > http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhel > p/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Docume > ntation&file=00000351.htm > Note: The cfwddx tag throws an exception if you attempt to > serialize a > CFC or user-defined function (UDF). > toru > On Wed, 23 Feb 2005 16:59:50 -0500, S. Isaac Dealey > <[EMAIL PROTECTED]> wrote: >> Well you could always do this: >> >> <cffunction name="serialize"> >> <cfset var wddx = ""> >> <cfwddx action="cfml2wddx" input="#variables#" >> variable="wddx"> >> <cfreturn wddx> >> </cffunction> >> >> I've never serialized objects via java myself -- I >> remember reading >> that they typically get written to files, so maybe the >> serialize >> function should actually be writing the packet to a file >> and returning >> true instead. I'd have to go look at the java docs for >> reference to >> know... But iirc the "this" scope is also included in the >> variables >> scope for the CFC, so that one cfwddx call should wrap up >> all your >> data which would let you reinstantiate the serialized >> component later. >> >> hth s. isaac dealey 954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/story/?storyid=44477&DE=1 http://www.sys-con.com/story/?storyid=45569&DE=1 http://www.fusiontap.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196271 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

