You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/12/23 08:43:37 UTC

svn commit: r358762 - /myfaces/api/trunk/src/java/javax/faces/component/UIViewRoot.java

Author: mmarinschek
Date: Thu Dec 22 23:43:32 2005
New Revision: 358762

URL: http://svn.apache.org/viewcvs?rev=358762&view=rev
Log:
_uniqueIdCounter was never saved - so on second request, components couldn't be added without an id defined.

Modified:
    myfaces/api/trunk/src/java/javax/faces/component/UIViewRoot.java

Modified: myfaces/api/trunk/src/java/javax/faces/component/UIViewRoot.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/UIViewRoot.java?rev=358762&r1=358761&r2=358762&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/UIViewRoot.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/UIViewRoot.java Thu Dec 22 23:43:32 2005
@@ -291,11 +291,12 @@
 
     public Object saveState(FacesContext context)
     {
-        Object values[] = new Object[4];
+        Object values[] = new Object[5];
         values[0] = super.saveState(context);
         values[1] = _locale;
         values[2] = _renderKitId;
         values[3] = _viewId;
+        values[4] = new Integer(_uniqueIdCounter);
         return values;
     }
 
@@ -306,6 +307,7 @@
         _locale = (Locale)values[1];
         _renderKitId = (String)values[2];
         _viewId = (String)values[3];
+        _uniqueIdCounter = values[4]==null?0:((Integer) values[4]).intValue();
     }
     //------------------ GENERATED CODE END ---------------------------------------
 }