myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r379455 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree2/TreeWalkerBase.java
Date Tue, 21 Feb 2006 14:02:08 GMT
Author: imario
Date: Tue Feb 21 06:02:05 2006
New Revision: 379455

URL: http://svn.apache.org/viewcvs?rev=379455&view=rev
Log:
correctly parse the child id

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree2/TreeWalkerBase.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree2/TreeWalkerBase.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree2/TreeWalkerBase.java?rev=379455&r1=379454&r2=379455&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree2/TreeWalkerBase.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree2/TreeWalkerBase.java
Tue Feb 21 06:02:05 2006
@@ -117,7 +117,7 @@
                 tree.setNodeId(parentNodeId);
                 TreeNode parentNode = tree.getNode();
 
-                int siblingCount = Integer.parseInt(currentNodeId.substring(currentNodeId.length()
- 1));
+                int siblingCount = Integer.parseInt(currentNodeId.substring(parentNodeId.length()+1));
                 siblingCount++;
 
                 if (siblingCount == parentNode.getChildCount())



Mime
View raw message