Author: maksimkaszynski
Date: 2007-10-15 12:47:45 -0400 (Mon, 15 Oct 2007)
New Revision: 3379
Modified:
trunk/ui/jQuery/src/main/java/org/richfaces/renderkit/JQueryRendererBase.java
trunk/ui/jQuery/src/main/templates/jQuery.jspx
Log:
http://jira.jboss.com/jira/browse/RF-1096
added logic to renderer
Modified: trunk/ui/jQuery/src/main/java/org/richfaces/renderkit/JQueryRendererBase.java
===================================================================
---
trunk/ui/jQuery/src/main/java/org/richfaces/renderkit/JQueryRendererBase.java 2007-10-15
16:47:37 UTC (rev 3378)
+++
trunk/ui/jQuery/src/main/java/org/richfaces/renderkit/JQueryRendererBase.java 2007-10-15
16:47:45 UTC (rev 3379)
@@ -10,6 +10,7 @@
import org.ajax4jsf.renderkit.ComponentVariables;
import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
import org.richfaces.component.UIJQuery;
+import org.richfaces.component.util.HtmlUtil;
public class JQueryRendererBase extends HeaderResourcesRendererBase {
@@ -47,8 +48,8 @@
}
}
- protected String replaceClientIds(String selector) {
- return selector;
+ protected String replaceClientIds(FacesContext context, UIComponent component, String
selector) {
+ return HtmlUtil.expandIdSelector(selector, component, context);
}
Modified: trunk/ui/jQuery/src/main/templates/jQuery.jspx
===================================================================
--- trunk/ui/jQuery/src/main/templates/jQuery.jspx 2007-10-15 16:47:37 UTC (rev 3378)
+++ trunk/ui/jQuery/src/main/templates/jQuery.jspx 2007-10-15 16:47:45 UTC (rev 3379)
@@ -26,7 +26,7 @@
String selector = (String) variables.getVariable("selector");
checkValidity(clientId, name, timing, query);
- variables.setVariable("selector", replaceClientIds(selector));
+ variables.setVariable("selector", replaceClientIds(context, component,
selector));
]]>
</jsp:scriptlet>