You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mathias Broekelmann (JIRA)" <in...@incubator.apache.org> on 2005/03/21 13:55:24 UTC
[jira] Created: (MYFACES-139) x:tree (now) creates an invalid ids for nodes
x:tree (now) creates an invalid ids for nodes
---------------------------------------------
Key: MYFACES-139
URL: http://issues.apache.org/jira/browse/MYFACES-139
Project: MyFaces
Type: Bug
Versions: Nightly Build
Reporter: Mathias Broekelmann
here is the patch:
Index: HtmlTree.java
===================================================================
RCS file: /home/cvspublic/incubator-myfaces/src/components/org/apache/myfaces/custom/tree/HtmlTree.java,v
retrieving revision 1.30
diff -u -r1.30 HtmlTree.java
--- HtmlTree.java 11 Feb 2005 00:54:02 -0000 1.30
+++ HtmlTree.java 21 Mar 2005 12:20:25 -0000
@@ -150,7 +150,7 @@
public String createUniqueId(FacesContext context)
{
- return getClientId(context) + "_node_" + uniqueIdCounter++;
+ return getClientId(context).replaceAll(":", "_") + "_node_" + uniqueIdCounter++;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira