myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1136579 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlAjaxBehaviorRenderer.java
Date Thu, 16 Jun 2011 18:12:39 GMT
Author: lu4242
Date: Thu Jun 16 18:12:39 2011
New Revision: 1136579

URL: http://svn.apache.org/viewvc?rev=1136579&view=rev
Log:
MYFACES-3176 javax.faces.SEPARATOR_CHAR not working together with AJAX

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlAjaxBehaviorRenderer.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlAjaxBehaviorRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlAjaxBehaviorRenderer.java?rev=1136579&r1=1136578&r2=1136579&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlAjaxBehaviorRenderer.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlAjaxBehaviorRenderer.java
Thu Jun 16 18:12:39 2011
@@ -28,6 +28,7 @@ import java.util.List;
 
 import javax.faces.FacesException;
 import javax.faces.component.UIComponent;
+import javax.faces.component.UINamingContainer;
 import javax.faces.component.behavior.AjaxBehavior;
 import javax.faces.component.behavior.ClientBehavior;
 import javax.faces.component.behavior.ClientBehaviorContext;
@@ -283,7 +284,7 @@ public class HtmlAjaxBehaviorRenderer ex
         UIComponent contextComponent = context.getComponent();
         UIComponent target = contextComponent.findComponent(id);
         if (target == null) {
-            target = contextComponent.findComponent(COLON + id);
+            target = contextComponent.findComponent(UINamingContainer.getSeparatorChar(context.getFacesContext())
+ id);
         }
         if (target != null) {
             return target.getClientId();



Mime
View raw message