Author: nbelaevski
Date: 2010-05-13 18:16:19 -0400 (Thu, 13 May 2010)
New Revision: 17042
Modified:
root/core/trunk/impl/src/main/java/org/richfaces/context/ComponentIdResolver.java
Log:
https://jira.jboss.org/jira/browse/RF-8639
Modified:
root/core/trunk/impl/src/main/java/org/richfaces/context/ComponentIdResolver.java
===================================================================
---
root/core/trunk/impl/src/main/java/org/richfaces/context/ComponentIdResolver.java 2010-05-13
21:47:44 UTC (rev 17041)
+++
root/core/trunk/impl/src/main/java/org/richfaces/context/ComponentIdResolver.java 2010-05-13
22:16:19 UTC (rev 17042)
@@ -37,6 +37,7 @@
import javax.faces.context.FacesContext;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
+import org.ajax4jsf.renderkit.RendererUtils;
import org.richfaces.component.AjaxContainer;
import org.richfaces.component.MetaComponentResolver;
@@ -46,6 +47,8 @@
*/
public final class ComponentIdResolver {
+ private static RendererUtils RENDERER_UTILS = RendererUtils.getInstance();
+
private static Map<String, String> metaComponentSubstitutions = new
HashMap<String, String>();
static {
@@ -307,6 +310,12 @@
break;
} else {
if (resolvedId != null) {
+ String predefinedMetaComponentId =
RENDERER_UTILS.getPredefinedMetaComponentId(facesContext,
+ bottomMatch, resolvedId);
+
+ if (predefinedMetaComponentId != null) {
+ resolvedId = predefinedMetaComponentId;
+ }
resolvedIds.add(resolvedId);
} else {
String computedId = computeClientId(facesContext, topMatch,
fullId);