<?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 Forms, Dynamic Lists and Ajax</title>
	<atom:link href="http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/</link>
	<description>Eggsylife</description>
	<lastBuildDate>Mon, 30 Jan 2012 00:48:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Todd</title>
		<link>http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/comment-page-1/#comment-311</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Thu, 30 Jun 2011 18:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=183#comment-311</guid>
		<description>can some one put a war file out here so I can just import it. I can&#039;t get the project to run when I import it in to a new workspace. The project does not know it is a web based project.</description>
		<content:encoded><![CDATA[<p>can some one put a war file out here so I can just import it. I can&#8217;t get the project to run when I import it in to a new workspace. The project does not know it is a web based project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/comment-page-1/#comment-294</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 04 Apr 2011 23:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=183#comment-294</guid>
		<description>&lt;a href=&quot;#comment-293&quot; rel=&quot;nofollow&quot;&gt;@Julio Argüello &lt;/a&gt; 
Hi Julio,

I&#039;m not sure I understand what you are asking?

Can you clarify ?</description>
		<content:encoded><![CDATA[<p><a href="#comment-293" rel="nofollow">@Julio Argüello </a><br />
Hi Julio,</p>
<p>I&#8217;m not sure I understand what you are asking?</p>
<p>Can you clarify ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julio Argüello</title>
		<link>http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/comment-page-1/#comment-293</link>
		<dc:creator>Julio Argüello</dc:creator>
		<pubDate>Mon, 04 Apr 2011 19:51:16 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=183#comment-293</guid>
		<description>Very helpful post.

I was able to add new rows without need of an aditional JSP nor a dedicated controller. Thanks to JSTL and javascript is easy to create a row template and replace on client side a placeholder with the row number.

However I thing my implementation could be improved, is there any way to retrieve jsp tag body without have been processed?</description>
		<content:encoded><![CDATA[<p>Very helpful post.</p>
<p>I was able to add new rows without need of an aditional JSP nor a dedicated controller. Thanks to JSTL and javascript is easy to create a row template and replace on client side a placeholder with the row number.</p>
<p>However I thing my implementation could be improved, is there any way to retrieve jsp tag body without have been processed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mani</title>
		<link>http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/comment-page-1/#comment-285</link>
		<dc:creator>Mani</dc:creator>
		<pubDate>Wed, 16 Feb 2011 13:58:28 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=183#comment-285</guid>
		<description>Hi.

In this example you have a students class which has student name property.

We have a similar requirement. Here we have a dropdown which contains 4 different types of auctions. Every auction has a different set of parameters.

If I select any auction the corresponding auction parameters should get displayed.

Since every auction has different parameters like start date, end date and so on, how should I use spring bind tag to bind those parameters?

I have an auction class as my command class and it contaims AuctionParamValues as list.
The auctionParamValues is an object that contains paramname and param value.

Could you please help me with this one?</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>In this example you have a students class which has student name property.</p>
<p>We have a similar requirement. Here we have a dropdown which contains 4 different types of auctions. Every auction has a different set of parameters.</p>
<p>If I select any auction the corresponding auction parameters should get displayed.</p>
<p>Since every auction has different parameters like start date, end date and so on, how should I use spring bind tag to bind those parameters?</p>
<p>I have an auction class as my command class and it contaims AuctionParamValues as list.<br />
The auctionParamValues is an object that contains paramname and param value.</p>
<p>Could you please help me with this one?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: l0co</title>
		<link>http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/comment-page-1/#comment-279</link>
		<dc:creator>l0co</dc:creator>
		<pubDate>Wed, 29 Dec 2010 19:52:24 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=183#comment-279</guid>
		<description>The most of dynamic form solutions with AutoPopulatingList and LazyList don&#039;t provide any solution for removing elements from dynamic forms. If you have problems with that you can check out my own idea, described here: http://lifeinide.blogspot.com/2010/12/dynamic-forms-lazylist-and-transparent.html</description>
		<content:encoded><![CDATA[<p>The most of dynamic form solutions with AutoPopulatingList and LazyList don&#8217;t provide any solution for removing elements from dynamic forms. If you have problems with that you can check out my own idea, described here: <a href="http://lifeinide.blogspot.com/2010/12/dynamic-forms-lazylist-and-transparent.html" rel="nofollow">http://lifeinide.blogspot.com/2010/12/dynamic-forms-lazylist-and-transparent.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/comment-page-1/#comment-107</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 29 Apr 2010 18:35:40 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=183#comment-107</guid>
		<description>Hi there,

Many thanks for your comments I am glad it helped  you :)</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Many thanks for your comments I am glad it helped  you <img src='http://eggsylife.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/comment-page-1/#comment-106</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Thu, 29 Apr 2010 14:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=183#comment-106</guid>
		<description>This is a tremendous help.  It solves a problem that I have encountered with a new project.  I just want to say thank you for such a thorough post -- it will be a big time saver for me.

Cheers!</description>
		<content:encoded><![CDATA[<p>This is a tremendous help.  It solves a problem that I have encountered with a new project.  I just want to say thank you for such a thorough post &#8212; it will be a big time saver for me.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/comment-page-1/#comment-102</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 22 Apr 2010 11:34:08 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=183#comment-102</guid>
		<description>Hi there,

I guess in the controller submit method you could add the BindingResult parameter and implement your own validator.

You could also use the new JSR-303 Bean Annotation validation on each individual student and that should vailidate so the onSubmit method would become:

&lt;pre lang=&quot;JAVA&quot;&gt;
@RequestMapping(method = RequestMethod.POST, value=&quot;/processClassForm.page&quot;)
protected String onSubmit( @ModelAttribute(&quot;classCommand&quot;) @Valid ClassCommand classCommand,  ModelMap model )
{
	model.addAttribute(&quot;savedClass&quot;, classCommand);
	return &quot;formResult.view&quot;;
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I guess in the controller submit method you could add the BindingResult parameter and implement your own validator.</p>
<p>You could also use the new JSR-303 Bean Annotation validation on each individual student and that should vailidate so the onSubmit method would become:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">@RequestMapping<span style="color: #009900;">&#40;</span>method <span style="color: #339933;">=</span> RequestMethod.<span style="color: #006633;">POST</span>, value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/processClassForm.page&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #003399;">String</span> onSubmit<span style="color: #009900;">&#40;</span> @ModelAttribute<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;classCommand&quot;</span><span style="color: #009900;">&#41;</span> @Valid ClassCommand classCommand,  ModelMap model <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	model.<span style="color: #006633;">addAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;savedClass&quot;</span>, classCommand<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #0000ff;">&quot;formResult.view&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Gerald</title>
		<link>http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/comment-page-1/#comment-101</link>
		<dc:creator>Gerald</dc:creator>
		<pubDate>Wed, 21 Apr 2010 16:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=183#comment-101</guid>
		<description>Is it posible validate the generated inputs?
Best Regards and Thanks for the information.</description>
		<content:encoded><![CDATA[<p>Is it posible validate the generated inputs?<br />
Best Regards and Thanks for the information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/comment-page-1/#comment-100</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 14 Apr 2010 21:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=183#comment-100</guid>
		<description>Hi there,

In that case, rather than using the @ModelAttribute function you could just populate the required object (by placing into the ModelMap) in the GET annotated controller method in that case the object would be populated when and only when the form is displayed. 

If you need to pre-populate the Class Command in this example such as calling into a database as you mention you can do so by all means. The AutoPopulating list of the class command can be updated in the same way as a java.util.List</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>In that case, rather than using the @ModelAttribute function you could just populate the required object (by placing into the ModelMap) in the GET annotated controller method in that case the object would be populated when and only when the form is displayed. </p>
<p>If you need to pre-populate the Class Command in this example such as calling into a database as you mention you can do so by all means. The AutoPopulating list of the class command can be updated in the same way as a java.util.List</p>
]]></content:encoded>
	</item>
</channel>
</rss>

