<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Spring&#8217;s Dependency Injection &amp; MVC</title>
	<atom:link href="http://www.rapaul.com/2009/03/29/springs-dependency-injection-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rapaul.com/2009/03/29/springs-dependency-injection-mvc/</link>
	<description>A technical blog written by Richard Paul</description>
	<lastBuildDate>Thu, 14 Jan 2010 10:59:20 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Richard Paul</title>
		<link>http://www.rapaul.com/2009/03/29/springs-dependency-injection-mvc/comment-page-1/#comment-130</link>
		<dc:creator>Richard Paul</dc:creator>
		<pubDate>Wed, 12 Aug 2009 08:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.rapaul.com/?p=198#comment-130</guid>
		<description>Hi Dave,

I&#039;m not sure you are able to mix the Spring 2.0 (classic) style controllers with the Spring 2.5 annotations.

The &lt;tt&gt;SimpleFormController&lt;/tt&gt; provides methods such as &lt;tt&gt;initBinder(HttpServletRequest request, ServletRequestDataBinder binder)&lt;/tt&gt;. While in Spring 2.5 you don&#039;t extend any base classes, rather you simply mark up methods using the &lt;tt&gt;@InitBinder&lt;/tt&gt; annotation.

Similarly &lt;tt&gt;@ModelAttribute&lt;/tt&gt; exposes objects to the model, while in Spring 2.0 you would have used the &lt;tt&gt;referenceData&lt;/tt&gt; method for this.

As for a working Spring 2.5 MVC example, the Spring download with docs includes sample applications. Check out the petclinic example in http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-2.5.6.SEC01-with-docs.zip

Hope that helps,
Richard.</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I&#8217;m not sure you are able to mix the Spring 2.0 (classic) style controllers with the Spring 2.5 annotations.</p>
<p>The <tt>SimpleFormController</tt> provides methods such as <tt>initBinder(HttpServletRequest request, ServletRequestDataBinder binder)</tt>. While in Spring 2.5 you don&#8217;t extend any base classes, rather you simply mark up methods using the <tt>@InitBinder</tt> annotation.</p>
<p>Similarly <tt>@ModelAttribute</tt> exposes objects to the model, while in Spring 2.0 you would have used the <tt>referenceData</tt> method for this.</p>
<p>As for a working Spring 2.5 MVC example, the Spring download with docs includes sample applications. Check out the petclinic example in <a href="http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-2.5.6.SEC01-with-docs.zip" rel="nofollow">http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-2.5.6.SEC01-with-docs.zip</a></p>
<p>Hope that helps,<br />
Richard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Birtwell</title>
		<link>http://www.rapaul.com/2009/03/29/springs-dependency-injection-mvc/comment-page-1/#comment-129</link>
		<dc:creator>Dave Birtwell</dc:creator>
		<pubDate>Tue, 11 Aug 2009 22:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.rapaul.com/?p=198#comment-129</guid>
		<description>Hey Richard:

Any complete project source code to backup the MVC slides, especially with the filling of the JSP and form:select block? I&#039;m attempting to use  a SimpleFormController with @InitBinder and @ModelAttribute to pre-populate the selection dropdown, but the code doesn&#039;t seem to get called and the dropdown stays empty.

Thanks,
Dave</description>
		<content:encoded><![CDATA[<p>Hey Richard:</p>
<p>Any complete project source code to backup the MVC slides, especially with the filling of the JSP and form:select block? I&#8217;m attempting to use  a SimpleFormController with @InitBinder and @ModelAttribute to pre-populate the selection dropdown, but the code doesn&#8217;t seem to get called and the dropdown stays empty.</p>
<p>Thanks,<br />
Dave</p>
]]></content:encoded>
	</item>
</channel>
</rss>
