<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>software, bourbon, and the banjo &#187; ColdSpring</title>
	<atom:link href="http://www.cansado.org/category/coldfusion/coldspring/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cansado.org</link>
	<description>musings on software development, usually while inebriated</description>
	<lastBuildDate>Mon, 09 Jan 2012 02:13:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>You Can&#8217;t Proxy TransferObjects in ColdSpring</title>
		<link>http://www.cansado.org/2009/11/05/you-cant-proxy-transferobjects-in-coldspring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=you-cant-proxy-transferobjects-in-coldspring</link>
		<comments>http://www.cansado.org/2009/11/05/you-cant-proxy-transferobjects-in-coldspring/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 20:04:55 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[ColdSpring]]></category>
		<category><![CDATA[Transfer ORM]]></category>

		<guid isPermaLink="false">http://www.cansado.org/?p=9</guid>
		<description><![CDATA[In an attempt to use TransferObjects as event-beans I created a class called TransferObjectBindingAdvice that would wrap around the setter methods called by the Mach-II event-beans, to be installed and called via the AOP hooks in ColdSpring. I had high hopes that this proxied object would be able to take the place of the more [...]]]></description>
			<content:encoded><![CDATA[<p>In an attempt to <a href="http://www.cansado.org/2009/11/04/using-transferobjects-as-mach-ii-event-beans/">use TransferObjects as event-beans</a> I created a class called <code>TransferObjectBindingAdvice</code> that would wrap around the setter methods called by the Mach-II <code>event-bean</code>s, to be installed and called via the AOP hooks in ColdSpring. I had high hopes that this proxied object would be able to take the place of the more advanced data binding hooks that I would&#8217;ve liked to see in the upcoming 1.9 release of Mach-II.</p>
<p>I wanted to be able to verify that setters expecting a Date object would get a valid date string, sure; but I also wanted to be able to bind more complex objects to the <code>event-bean</code>s. For example, I could pass in the TransferFactory in the aspect&#8217;s declaration in the ColdSpring configuration file, and use it on a setter for a many-to-many relationship which would be represented as a checkbox group on a form. Simply loop through the list of IDs passed as that checkbox group and build your relationship, all before the controller gets called.</p>
<p>Unfortunately <a href="http://corfield.org/blog/index.cfm?">Sean Corfield</a> pointed out this approach was technically impossible. He told me that TransferObjects are generated dynamically and the methods only exist at runtime, so they can&#8217;t be proxied by ColdSpring.</p>
<p>Which brings me back to square one. What is the best way to handle form-binding cleanly in Mach-II? Do I need to create model objects and be done with it? Should I use Transfer decorators? Should I give up hope of using TransferObjects, the <code>event-bean</code> command, and the &lt;form&gt; taglib in harmony?</p>
<p>Nah. Next up: decorators!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cansado.org/2009/11/05/you-cant-proxy-transferobjects-in-coldspring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
