myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1421642 - /myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIViewRoot.java
Date Fri, 14 Dec 2012 02:39:39 GMT
Author: lu4242
Date: Fri Dec 14 02:39:37 2012
New Revision: 1421642

URL: http://svn.apache.org/viewvc?rev=1421642&view=rev
Log:
MYFACES-3663 UIViewRoot.createUniqueId() should generate unique ids for all the component
tree.

Modified:
    myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIViewRoot.java

Modified: myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIViewRoot.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIViewRoot.java?rev=1421642&r1=1421641&r2=1421642&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIViewRoot.java (original)
+++ myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIViewRoot.java Fri
Dec 14 02:39:37 2012
@@ -358,7 +358,7 @@ public class UIViewRoot extends UICompon
                 Long uniqueIdCounter = (Long) getStateHelper().get(PropertyKeys.uniqueIdCounter);
                 uniqueIdCounter = (uniqueIdCounter == null) ? 0 : uniqueIdCounter;
                 getStateHelper().put(PropertyKeys.uniqueIdCounter, (uniqueIdCounter+1L));
-                return bld.append(UNIQUE_ID_PREFIX).append(uniqueIdCounter).toString();
+                return bld.append(UNIQUE_ID_PREFIX).append("__v_").append(uniqueIdCounter).toString();
             }
         }
         // Optionally, a unique seed value can be supplied by component creators which



Mime
View raw message