myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arobinso...@apache.org
Subject svn commit: r1076418 - /myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java
Date Wed, 02 Mar 2011 21:51:56 GMT
Author: arobinson74
Date: Wed Mar  2 21:51:56 2011
New Revision: 1076418

URL: http://svn.apache.org/viewvc?rev=1076418&view=rev
Log:
TRINIDAD-2047 - do not attempt to save the stamp state when there is no active stamp

Modified:
    myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java

Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java?rev=1076418&r1=1076417&r2=1076418&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java
(original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java
Wed Mar  2 21:51:56 2011
@@ -255,15 +255,15 @@ public abstract class UIXCollection exte
       setRowKey(currencyKey);
     }
 
-    // Finally clean up any internal model state that we might be holding on to. We do not
want to hold onto any 
-    // application data in between requests 
+    // Finally clean up any internal model state that we might be holding on to. We do not
want to hold onto any
+    // application data in between requests
     InternalState iState = _getInternalState(false);
     if (iState != null)
     {
       iState._value = null;
       iState._model= null;
     }
-    
+
     return savedState;
   }
 
@@ -1789,6 +1789,13 @@ public abstract class UIXCollection exte
     StampState stampState = _getStampState();
     FacesContext context = getFacesContext();
     Object currencyObj = getRowKey();
+
+    // TRINIDAD-2047: we do not need to save stamp state if there is no active stamp
+    if (currencyObj == null)
+    {
+      return;
+    }
+
     int position = 0;
     for(UIComponent stamp : getStamps())
     {



Mime
View raw message