<?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: Grails one-to-many dynamic forms</title>
	<atom:link href="http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/</link>
	<description></description>
	<lastBuildDate>Sat, 18 Feb 2012 16:07:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: win</title>
		<link>http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/#comment-6488</link>
		<dc:creator>win</dc:creator>
		<pubDate>Sat, 18 Feb 2012 16:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://omarello.com/?p=13#comment-6488</guid>
		<description>I test in 2.0.1. It work fine.
when I change &quot;phonesList&quot; to &quot;phones&quot; in gsp files and remove getPhonesList method in Contact class.</description>
		<content:encoded><![CDATA[<p>I test in 2.0.1. It work fine.<br />
when I change &#8220;phonesList&#8221; to &#8220;phones&#8221; in gsp files and remove getPhonesList method in Contact class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: win</title>
		<link>http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/#comment-6483</link>
		<dc:creator>win</dc:creator>
		<pubDate>Sat, 18 Feb 2012 10:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://omarello.com/?p=13#comment-6483</guid>
		<description>Me too</description>
		<content:encoded><![CDATA[<p>Me too</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephane Rainville</title>
		<link>http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/#comment-6296</link>
		<dc:creator>Stephane Rainville</dc:creator>
		<pubDate>Tue, 07 Feb 2012 03:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://omarello.com/?p=13#comment-6296</guid>
		<description>Great post !
Error validation seems to be an issue still.

On a parent.save (with errors in child) the parent.errors contains duplicate entries in a weird format
(and child objects errors are empty)
childItem[0][1].description  don&#039;t understand
childItem[1][2].description  don&#039;t understand
childItem[0].description Great
childItem[1].description  Great

If I loop thru the child, I get errors in the child object (yeah) but still duplicate entries in the parent when I call save.

Any clues?

So far my complex solution would be to loop thru the children, highlight the errors BEFORE calling save. Once validate on all child items passes THEN call save.</description>
		<content:encoded><![CDATA[<p>Great post !<br />
Error validation seems to be an issue still.</p>
<p>On a parent.save (with errors in child) the parent.errors contains duplicate entries in a weird format<br />
(and child objects errors are empty)<br />
childItem[0][1].description  don&#8217;t understand<br />
childItem[1][2].description  don&#8217;t understand<br />
childItem[0].description Great<br />
childItem[1].description  Great</p>
<p>If I loop thru the child, I get errors in the child object (yeah) but still duplicate entries in the parent when I call save.</p>
<p>Any clues?</p>
<p>So far my complex solution would be to loop thru the children, highlight the errors BEFORE calling save. Once validate on all child items passes THEN call save.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo</title>
		<link>http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/#comment-5954</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Mon, 16 Jan 2012 19:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://omarello.com/?p=13#comment-5954</guid>
		<description>Thanks Rob. it seems to be working fine now.  I also had to fix my view - the select field to a proper name:
name=&quot;productItemList[${i}].product.id&quot;

thanks</description>
		<content:encoded><![CDATA[<p>Thanks Rob. it seems to be working fine now.  I also had to fix my view &#8211; the select field to a proper name:<br />
name=&#8221;productItemList[${i}].product.id&#8221;</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/#comment-5866</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Wed, 11 Jan 2012 19:13:37 +0000</pubDate>
		<guid isPermaLink="false">http://omarello.com/?p=13#comment-5866</guid>
		<description>See last comment on http://stackoverflow.com/questions/8636503/how-to-recover-from-dont-flush-the-session-after-an-exception-occurs-error/8822560#8822560</description>
		<content:encoded><![CDATA[<p>See last comment on <a href="http://stackoverflow.com/questions/8636503/how-to-recover-from-dont-flush-the-session-after-an-exception-occurs-error/8822560#8822560" rel="nofollow">http://stackoverflow.com/questions/8636503/how-to-recover-from-dont-flush-the-session-after-an-exception-occurs-error/8822560#8822560</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo</title>
		<link>http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/#comment-5865</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Wed, 11 Jan 2012 18:46:26 +0000</pubDate>
		<guid isPermaLink="false">http://omarello.com/?p=13#comment-5865</guid>
		<description>Very good article, thanks for sharing.  I&#039;m new to Grails, so if anyone can help me, I&#039;d really appreciate.  I&#039;m trying to extend this example by associating Phone with a third domain called &quot;product&quot;.
so, in my phone domain I have a line for:
 static belongsTo =  [contact: Contact, product:Product]

In my  Product domain:
	 static hasMany =[phones: Phone]

In my phone view:

  

When I try to save, I get an error message:
Property [product] of class [class com.easyinvt.Phone] cannot be null

It seems that Grails is not automatically mapping my product id to the Phone class. 
Note: I&#039;m using Grails 2.0

Thank you for the help
Paulo</description>
		<content:encoded><![CDATA[<p>Very good article, thanks for sharing.  I&#8217;m new to Grails, so if anyone can help me, I&#8217;d really appreciate.  I&#8217;m trying to extend this example by associating Phone with a third domain called &#8220;product&#8221;.<br />
so, in my phone domain I have a line for:<br />
 static belongsTo =  [contact: Contact, product:Product]</p>
<p>In my  Product domain:<br />
	 static hasMany =[phones: Phone]</p>
<p>In my phone view:</p>
<p>When I try to save, I get an error message:<br />
Property [product] of class [class com.easyinvt.Phone] cannot be null</p>
<p>It seems that Grails is not automatically mapping my product id to the Phone class.<br />
Note: I&#8217;m using Grails 2.0</p>
<p>Thank you for the help<br />
Paulo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/#comment-5864</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Wed, 11 Jan 2012 15:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://omarello.com/?p=13#comment-5864</guid>
		<description>I&#039;am using Grails 2.0 and it throws the follwong exception in the save action:
null id in test.TargetEvaluation entry (don&#039;t flush the Session after an exception occurs)
org.hibernate.AssertionFailure: null id in ....

It works fine in 1.3.7. And the data sent is the same. Has anyone the same issue?
Looks like the cascade does not work...</description>
		<content:encoded><![CDATA[<p>I&#8217;am using Grails 2.0 and it throws the follwong exception in the save action:<br />
null id in test.TargetEvaluation entry (don&#8217;t flush the Session after an exception occurs)<br />
org.hibernate.AssertionFailure: null id in &#8230;.</p>
<p>It works fine in 1.3.7. And the data sent is the same. Has anyone the same issue?<br />
Looks like the cascade does not work&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/#comment-4462</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 15 Nov 2011 11:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://omarello.com/?p=13#comment-4462</guid>
		<description>Never mind.
I forgot the closing tag of a div in the code, and it was all messed up.</description>
		<content:encoded><![CDATA[<p>Never mind.<br />
I forgot the closing tag of a div in the code, and it was all messed up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/#comment-4455</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 15 Nov 2011 08:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://omarello.com/?p=13#comment-4455</guid>
		<description>hey guys.

I was wondering if you could help me.
I am doing the same thing with grails 2.0.0.RC1 and on IE works fine, but in Firefox or Chrome the values never reach the server. From what i saw in the source of the generated HTML , the new components aren&#039;t added to the DOM in Firefox/Chrome. 
Any hints on how to resolve this ?
Thanx.</description>
		<content:encoded><![CDATA[<p>hey guys.</p>
<p>I was wondering if you could help me.<br />
I am doing the same thing with grails 2.0.0.RC1 and on IE works fine, but in Firefox or Chrome the values never reach the server. From what i saw in the source of the generated HTML , the new components aren&#8217;t added to the DOM in Firefox/Chrome.<br />
Any hints on how to resolve this ?<br />
Thanx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sand</title>
		<link>http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/#comment-4433</link>
		<dc:creator>sand</dc:creator>
		<pubDate>Mon, 14 Nov 2011 17:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://omarello.com/?p=13#comment-4433</guid>
		<description>Thanks for this useful post.

I was trying to run this application on Grails 2.0.0.RC1. I was able to create contact and phones with no problem. I was also be able to update a contact with NO phones, then add phones.

However, when I tried to update a contact with existing phones, I got &quot;Not a collection, array, or map: cannot resolve nested value types. Stacktrace follows:&quot; exception at line: contactInstance.properties = params. 

I am wondering if anyone else have this problem?</description>
		<content:encoded><![CDATA[<p>Thanks for this useful post.</p>
<p>I was trying to run this application on Grails 2.0.0.RC1. I was able to create contact and phones with no problem. I was also be able to update a contact with NO phones, then add phones.</p>
<p>However, when I tried to update a contact with existing phones, I got &#8220;Not a collection, array, or map: cannot resolve nested value types. Stacktrace follows:&#8221; exception at line: contactInstance.properties = params. </p>
<p>I am wondering if anyone else have this problem?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

