Revision: 1783 http://svn.sourceforge.net/spring-rich-c/?rev=1783&view=rev Author: jhoskens Date: 2007-07-19 00:57:39 -0700 (Thu, 19 Jul 2007)
Log Message: ----------- when adding a child, if it's already a child, don't add it again (todo: check if we rather have the addChild() methods return a boolean) Modified Paths: -------------- trunk/spring-richclient/support/src/main/java/org/springframework/binding/form/support/DefaultFormModel.java Modified: trunk/spring-richclient/support/src/main/java/org/springframework/binding/form/support/DefaultFormModel.java =================================================================== --- trunk/spring-richclient/support/src/main/java/org/springframework/binding/form/support/DefaultFormModel.java 2007-07-11 07:49:47 UTC (rev 1782) +++ trunk/spring-richclient/support/src/main/java/org/springframework/binding/form/support/DefaultFormModel.java 2007-07-19 07:57:39 UTC (rev 1783) @@ -155,6 +155,9 @@ public void addChild(HierarchicalFormModel child) { + if (child.getParent() == this) + return; + super.addChild(child); if (child instanceof ValidatingFormModel) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ spring-rich-c-cvs mailing list spring-rich-c-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs