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/06 18:34:29 UTC

svn commit: r553945 - /myfaces/trinidad/branches/matzew_plugins_1211/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java

Author: matzew
Date: Fri Jul  6 09:34:29 2007
New Revision: 553945

URL: http://svn.apache.org/viewvc?view=rev&rev=553945
Log:
MYFACES-1675 saveState / restoreState fix

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

Modified: myfaces/trinidad/branches/matzew_plugins_1211/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/matzew_plugins_1211/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java?view=diff&rev=553945&r1=553944&r2=553945
==============================================================================
--- myfaces/trinidad/branches/matzew_plugins_1211/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java (original)
+++ myfaces/trinidad/branches/matzew_plugins_1211/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java Fri Jul  6 09:34:29 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
       {