myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarinsc...@apache.org
Subject svn commit: r279251 - /myfaces/impl/trunk/src/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java
Date Wed, 07 Sep 2005 05:54:30 GMT
Author: mmarinschek
Date: Tue Sep  6 22:54:25 2005
New Revision: 279251

URL: http://svn.apache.org/viewcvs?rev=279251&view=rev
Log:
don't want to start a commit war- but this is how it seems right to me

Modified:
    myfaces/impl/trunk/src/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java

Modified: myfaces/impl/trunk/src/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java
URL: http://svn.apache.org/viewcvs/myfaces/impl/trunk/src/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java?rev=279251&r1=279250&r2=279251&view=diff
==============================================================================
--- myfaces/impl/trunk/src/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java
(original)
+++ myfaces/impl/trunk/src/java/org/apache/myfaces/application/jsp/JspStateManagerImpl.java
Tue Sep  6 22:54:25 2005
@@ -232,12 +232,12 @@
     }
 
     private static void checkForDuplicateIds(UIComponent component,
-                                             FacesContext facesContext, Set ids)
+                                             FacesContext facesContext, Set clientIds)
     {
-        String id = component.getId();
-        if(id != null && !ids.add(id))
+        String clientId = component.getClientId(facesContext);
+        if(clientId != null && !clientIds.add(clientId))
         {
-            throw new IllegalStateException("Id : "+id+
+            throw new IllegalStateException("Client-id : "+clientId +
                     " is duplicated in the faces tree.");
         }
         else
@@ -246,7 +246,7 @@
             while (it.hasNext())
             {
                 UIComponent kid = (UIComponent) it.next();
-                checkForDuplicateIds(kid, facesContext, ids);
+                checkForDuplicateIds(kid, facesContext, clientIds);
             }
         }
     }



Mime
View raw message