incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bara...@apache.org
Subject svn commit: r472232 - /incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java
Date Tue, 07 Nov 2006 20:17:27 GMT
Author: baranda
Date: Tue Nov  7 12:17:26 2006
New Revision: 472232

URL: http://svn.apache.org/viewvc?view=rev&rev=472232
Log:
Fixed condition to detect stateholder properties, so the correct method is called when saving/restoring
its state

Modified:
    incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java

Modified: incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java?view=diff&rev=472232&r1=472231&r2=472232
==============================================================================
--- incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java
(original)
+++ incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java
Tue Nov  7 12:17:26 2006
@@ -177,7 +177,7 @@
             PropertyBean property =  (PropertyBean) iterator.next();
             String varName = property.getFieldPropertyName();
 
-            if (property.isMethodExpression() || property.isMethodBinding())
+            if (property.isStateHolder())
             {
                 out.println(arrayName+"["+propIndex+"] = saveAttachedState(facesContext,
"+varName+");");
             }
@@ -225,7 +225,7 @@
             String propFullClass = property.getPropertyClass();
             String propClass = Util.getClassFromFullClass(propFullClass);
 
-            if (property.isMethodExpression() || property.isMethodBinding())
+            if (property.isStateHolder())
             {
                 out.println(varName + " = "+_castIfNecessary(propClass)+"restoreAttachedState(facesContext,
"
                     + arrayName + "[" + propIndex + "]);");



Mime
View raw message