You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2007/07/11 08:53:02 UTC

svn commit: r555188 - /myfaces/trinidad/branches/pre-1.2.2-branch/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java

Author: matzew
Date: Tue Jul 10 23:53:02 2007
New Revision: 555188

URL: http://svn.apache.org/viewvc?view=rev&rev=555188
Log:
TRINIDAD-91 / MYFACES-1675
moved "saveState / restoreState fix" to pre-122-branch

Modified:
    myfaces/trinidad/branches/pre-1.2.2-branch/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java

Modified: myfaces/trinidad/branches/pre-1.2.2-branch/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/pre-1.2.2-branch/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java?view=diff&rev=555188&r1=555187&r2=555188
==============================================================================
--- myfaces/trinidad/branches/pre-1.2.2-branch/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java (original)
+++ myfaces/trinidad/branches/pre-1.2.2-branch/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java Tue Jul 10 23:53:02 2007
@@ -338,6 +338,10 @@
           out.println(arrayName + "[" + propIndex + "] = saveAttachedState(facesContext, " + varName + ");");
         }
       }
+      else if (GeneratorHelper.isConverter(property.getPropertyClass()))
+      {
+        out.println(arrayName + "[" + propIndex + "] = saveAttachedState(facesContext, " + varName + ");");
+      }
       else
       {
         out.println(arrayName + "[" + propIndex + "] = " + varName + ";");
@@ -400,6 +404,11 @@
               + arrayName + "[" + propIndex + "]);");
         }
 
+      }
+      else if (GeneratorHelper.isConverter(property.getPropertyClass()))
+      {
+        out.println(varName + " = (Converter) restoreAttachedState(facesContext, "
+            + arrayName + "[" + propIndex + "]);");
       }
       else
       {