myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jak...@apache.org
Subject svn commit: r939389 - /myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java
Date Thu, 29 Apr 2010 17:20:27 GMT
Author: jakobk
Date: Thu Apr 29 17:20:27 2010
New Revision: 939389

URL: http://svn.apache.org/viewvc?rev=939389&view=rev
Log:
MYFACES-2684 UIComponentBase.saveAttachedState save transient elements as null values on List
case (small fix, because the code caused a compilation failure)

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java?rev=939389&r1=939388&r2=939389&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java Thu Apr
29 17:20:27 2010
@@ -1431,10 +1431,9 @@ public abstract class UIComponentBase ex
             List<Object> lst = new ArrayList<Object>(((List<?>) attachedObject).size());
             for (Object item : (List<?>) attachedObject)
             {
-                Object value = it.next();
-                if (value != null)
+                if (item != null)
                 {
-                    lst.add(saveAttachedState(context, value));
+                    lst.add(saveAttachedState(context, item));
                 }
             }
 



Mime
View raw message