You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/04/29 08:21:19 UTC
svn commit: r939205 -
/myfaces/core/branches/1.1.x/api/src/main/java/javax/faces/component/UIComponentBase.java
Author: lu4242
Date: Thu Apr 29 06:21:19 2010
New Revision: 939205
URL: http://svn.apache.org/viewvc?rev=939205&view=rev
Log:
MYFACES-2684 UIComponentBase.saveAttachedState save transient elements on List case
Modified:
myfaces/core/branches/1.1.x/api/src/main/java/javax/faces/component/UIComponentBase.java
Modified: myfaces/core/branches/1.1.x/api/src/main/java/javax/faces/component/UIComponentBase.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/1.1.x/api/src/main/java/javax/faces/component/UIComponentBase.java?rev=939205&r1=939204&r2=939205&view=diff
==============================================================================
--- myfaces/core/branches/1.1.x/api/src/main/java/javax/faces/component/UIComponentBase.java (original)
+++ myfaces/core/branches/1.1.x/api/src/main/java/javax/faces/component/UIComponentBase.java Thu Apr 29 06:21:19 2010
@@ -1097,7 +1097,11 @@ public abstract class UIComponentBase
List lst = new ArrayList(((List)attachedObject).size());
for (Iterator it = ((List)attachedObject).iterator(); it.hasNext(); )
{
- lst.add(saveAttachedState(context, it.next()));
+ Object value = it.next();
+ if (value != null)
+ {
+ lst.add(saveAttachedState(context, value));
+ }
}
return new _AttachedListStateWrapper(lst);
}