Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MYFACES-3663 UIViewRoot.createUniqueId() should generate unique ids f…

…or all the component tree.

git-svn-id: https://svn.apache.org/repos/asf/myfaces/core/trunk@1421641 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit bfe6e657bcf6b344a2121bbc8def2168d4729376 1 parent f37a831
Leonardo Uribe authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  api/src/main/java/javax/faces/component/UIViewRoot.java
View
2  api/src/main/java/javax/faces/component/UIViewRoot.java
@@ -358,7 +358,7 @@ public String createUniqueId(FacesContext context, String seed)
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
Please sign in to comment.
Something went wrong with that request. Please try again.