[richfaces-svn-commits] JBoss Rich Faces SVN: r4441 - in branches/3.1.x/ui/componentControl/src/main: templates and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Dec 4 08:59:25 EST 2007


Author: maksimkaszynski
Date: 2007-12-04 08:59:25 -0500 (Tue, 04 Dec 2007)
New Revision: 4441

Modified:
   branches/3.1.x/ui/componentControl/src/main/java/org/richfaces/renderkit/ComponentControlRendererBase.java
   branches/3.1.x/ui/componentControl/src/main/templates/htmlComponentControl.jspx
Log:
Component control - usage of jsf ids

Modified: branches/3.1.x/ui/componentControl/src/main/java/org/richfaces/renderkit/ComponentControlRendererBase.java
===================================================================
--- branches/3.1.x/ui/componentControl/src/main/java/org/richfaces/renderkit/ComponentControlRendererBase.java	2007-12-04 13:59:16 UTC (rev 4440)
+++ branches/3.1.x/ui/componentControl/src/main/java/org/richfaces/renderkit/ComponentControlRendererBase.java	2007-12-04 13:59:25 UTC (rev 4441)
@@ -33,7 +33,6 @@
 	}
 
 	protected String replaceClientIds(FacesContext context, UIComponent component, String selector) {
-		return HtmlUtil.expandIdSelector(selector, component, context);
+		return HtmlUtil.expandIdSelector(HtmlUtil.idsToIdSelector(selector), component, context);
 	}
-
 }

Modified: branches/3.1.x/ui/componentControl/src/main/templates/htmlComponentControl.jspx
===================================================================
--- branches/3.1.x/ui/componentControl/src/main/templates/htmlComponentControl.jspx	2007-12-04 13:59:16 UTC (rev 4440)
+++ branches/3.1.x/ui/componentControl/src/main/templates/htmlComponentControl.jspx	2007-12-04 13:59:25 UTC (rev 4441)
@@ -24,9 +24,9 @@
 	<jsp:scriptlet>
 <![CDATA[ 
 			String event = (String) variables.getVariable("event");
-			String forAttr = "#"+(String) variables.getVariable("forAttr");
+			String forAttr = (String) variables.getVariable("forAttr");
 			String attachTiming = (String) variables.getVariable("attachTiming");
-			String attachTo = "#"+(String) variables.getVariable("attachTo");
+			String attachTo = (String) variables.getVariable("attachTo");
 			String name = (String) variables.getVariable("name");
 			String operation = (String) variables.getVariable("operation");
 			         




More information about the richfaces-svn-commits mailing list