incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r495703 - /incubator/adffaces/branches/faces-1_2-070102/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java
Date Fri, 12 Jan 2007 19:37:12 GMT
Author: awiner
Date: Fri Jan 12 11:37:12 2007
New Revision: 495703

URL: http://svn.apache.org/viewvc?view=rev&rev=495703
Log:
JSF 1.2: Fix incorrect implementation of UIXCollection.invokeOnComponent()

Modified:
    incubator/adffaces/branches/faces-1_2-070102/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java

Modified: incubator/adffaces/branches/faces-1_2-070102/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/faces-1_2-070102/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java?view=diff&rev=495703&r1=495702&r2=495703
==============================================================================
--- incubator/adffaces/branches/faces-1_2-070102/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java
(original)
+++ incubator/adffaces/branches/faces-1_2-070102/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java
Fri Jan 12 11:37:12 2007
@@ -903,12 +903,11 @@
     }
     // If we're on a row, set the currency, and invoke
     // inside
-    else if (clientId.startsWith(thisClientId) &&
-             (clientId.charAt(thisClientId.length()) ==
-              NamingContainer.SEPARATOR_CHAR))
+    int thisClientIdLength = thisClientId.length();
+    if (clientId.startsWith(thisClientId) &&
+        (clientId.charAt(thisClientIdLength) == NamingContainer.SEPARATOR_CHAR))
     {
-      String postId = thisClientId.substring(
-                        thisClientId.length() + 1);
+      String postId = clientId.substring(thisClientIdLength + 1);
       int sepIndex = postId.indexOf(NamingContainer.SEPARATOR_CHAR);
       // If there's no separator character afterwards, then this
       // isn't a row key



Mime
View raw message