[richfaces-svn-commits] JBoss Rich Faces SVN: r4711 - branches/3.1.x/framework/impl/src/main/java/org/richfaces/component/util.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Dec 11 09:40:53 EST 2007


Author: maksimkaszynski
Date: 2007-12-11 09:40:53 -0500 (Tue, 11 Dec 2007)
New Revision: 4711

Modified:
   branches/3.1.x/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java
Log:
more sophisticated component searching

Modified: branches/3.1.x/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java
===================================================================
--- branches/3.1.x/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java	2007-12-11 14:40:13 UTC (rev 4710)
+++ branches/3.1.x/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java	2007-12-11 14:40:53 UTC (rev 4711)
@@ -27,6 +27,7 @@
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
 
+import org.ajax4jsf.renderkit.RendererUtils;
 import org.ajax4jsf.util.HtmlDimensions;
 
 /**
@@ -65,7 +66,7 @@
 		while (matcher.find()) {
 			// make new id selector here using matcher.group(1)
 			String unescaped = matcher.group(1).replaceAll("\\\\:", ":");
-			UIComponent target = component.findComponent(unescaped);
+			UIComponent target = RendererUtils.getInstance().findComponentFor(context, component, unescaped);
 
 			if (target != null) {
 				matcher.appendReplacement(sb, "#"




More information about the richfaces-svn-commits mailing list