myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r642058 - /myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponentBase.java
Date Fri, 28 Mar 2008 01:39:36 GMT
Author: lu4242
Date: Thu Mar 27 18:39:34 2008
New Revision: 642058

URL: http://svn.apache.org/viewvc?rev=642058&view=rev
Log:
fix MYFACES-1844 <h:form prependId="false"> not work

Modified:
    myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponentBase.java

Modified: myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponentBase.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponentBase.java?rev=642058&r1=642057&r2=642058&view=diff
==============================================================================
--- myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponentBase.java
(original)
+++ myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponentBase.java
Thu Mar 27 18:39:34 2008
@@ -217,7 +217,15 @@
         UIComponent namingContainer = _ComponentUtils.findParentNamingContainer(this, false);
         if (namingContainer != null)
         {
-            _clientId = namingContainer.getContainerClientId(context) + NamingContainer.SEPARATOR_CHAR
+ id;
+            String containerClientId = namingContainer.getContainerClientId(context); 
+            if (containerClientId != null )
+            {
+                _clientId = containerClientId + NamingContainer.SEPARATOR_CHAR + id;
+            }
+            else
+            {
+                _clientId = id;
+            }
         }
         else
         {



Mime
View raw message