<?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>Eric Hauser's Blog &#187; Spring</title>
	<atom:link href="http://erichauser.net/category/spring/feed/" rel="self" type="application/rss+xml" />
	<link>http://erichauser.net</link>
	<description>J2EE, .NET, and general technology</description>
	<lastBuildDate>Fri, 23 Apr 2010 05:00:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Spring MVC form tag library and template support</title>
		<link>http://erichauser.net/2007/05/02/spring-mvc-form-tag-library-and-template-support/</link>
		<comments>http://erichauser.net/2007/05/02/spring-mvc-form-tag-library-and-template-support/#comments</comments>
		<pubDate>Thu, 03 May 2007 00:41:33 +0000</pubDate>
		<dc:creator>ehauser</dc:creator>
				<category><![CDATA[J2EE]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://www.hausertechnologies.com/wordpress/?p=18</guid>
		<description><![CDATA[A really useful UI feature of Webwork (now Struts 2) was templates.  ASP.NET also provides similar functionality through CSS Control Adapters.Templates allow you to customize the HTML output by the form tag libraries.  This feature was really useful for my development team because it allowed everyone to generate accessible (508 compliant) HTML for [...]]]></description>
			<content:encoded><![CDATA[<p>A really useful UI feature of Webwork (now Struts 2) was <a href="http://struts.apache.org/2.x/docs/themes-and-templates.html">templates</a>.  ASP.NET also provides similar functionality through <a href="http://weblogs.asp.net/scottgu/archive/2006/05/02/CSS-Control-Adapter-Toolkit-for-ASP.NET-2.0-.aspx">CSS Control Adapters</a>.Templates allow you to customize the HTML output by the form tag libraries.  This feature was really useful for my development team because it allowed everyone to generate accessible (508 compliant) HTML for forms without having to know anything about accessibility.  Just implement the templates once and make sure the whole team uses the accessible theme.<br />
<br/><br />
Spring MVC has the idea of themes, but does not allow for customizing the HTML output by the form tags.  I created <a href="http://opensource.atlassian.com/projects/spring/browse/SPR-3443">an issue in Spring JIRA</a> describing what should be included in the feature.  Templates would be a nice addition, but I would settle for a hook to provide custom HTML.  A template mechanism could be implemented if that functionality is added.<br />
<br/><br />
If you are reading this, vote for the feature.</p>
]]></content:encoded>
			<wfw:commentRss>http://erichauser.net/2007/05/02/spring-mvc-form-tag-library-and-template-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unit Testing SimpleFormController</title>
		<link>http://erichauser.net/2007/05/01/unit-testing-simpleformcontroller/</link>
		<comments>http://erichauser.net/2007/05/01/unit-testing-simpleformcontroller/#comments</comments>
		<pubDate>Wed, 02 May 2007 02:26:01 +0000</pubDate>
		<dc:creator>ehauser</dc:creator>
				<category><![CDATA[J2EE]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://www.hausertechnologies.com/wordpress/?p=17</guid>
		<description><![CDATA[I could not find this very easily searching Google.  At first, I figured you could just set the formSubmission property to true but it is a read-only property.  I ended up checking out AppFuse&#8217;s source code because I figured the solution would be there.  It was a good guess.  The trick [...]]]></description>
			<content:encoded><![CDATA[<p>I could not find this very easily searching Google.  At first, I figured you could just set the formSubmission property to true but it is a read-only property.  I ended up checking out <a href="http://www.appfuse.com">AppFuse</a>&#8217;s source code because I figured the solution would be there.  It was a good guess.  The trick is to make sure your MockHttpServletRequest is a POST when testing a form submission.  Seems kind of obvious now =).<br />
<br/><br />
<code><br />
request = new MockMultipartHttpServletRequest();<br />
request.setMethod(WebContentGenerator.METHOD_POST);<br />
</code><br />
<br/></p>
]]></content:encoded>
			<wfw:commentRss>http://erichauser.net/2007/05/01/unit-testing-simpleformcontroller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

