[richfaces-svn-commits] JBoss Rich Faces SVN: r333 - in trunk/richfaces/togglePanel/src/main: templates and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Apr 10 06:59:51 EDT 2007


Author: d.bulahov
Date: 2007-04-10 06:59:51 -0400 (Tue, 10 Apr 2007)
New Revision: 333

Modified:
   trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
   trunk/richfaces/togglePanel/src/main/templates/toggleControl.jspx
Log:
In new ajax4jsf-1.1.1-SNAPSHOT.jar not rendering childs in toggleControl. Has corrected

Modified: trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
===================================================================
--- trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java	2007-04-09 23:46:48 UTC (rev 332)
+++ trunk/richfaces/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java	2007-04-10 10:59:51 UTC (rev 333)
@@ -38,6 +38,7 @@
 import org.richfaces.component.UIToggleControl;
 import org.richfaces.component.UITogglePanel;
 import org.richfaces.event.SwitchablePanelSwitchEvent;
+import java.io.IOException;
 
 /**
  * @author igels
@@ -157,6 +158,11 @@
 		return null;
 	}
 
+	
+	public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
+ 		    super.encodeChildren(context, component);
+	}
+	
 /*	
 	private String getFormId(FacesContext context,UIComponent component) {
 		while (component != null && !(component instanceof UIForm)) {

Modified: trunk/richfaces/togglePanel/src/main/templates/toggleControl.jspx
===================================================================
--- trunk/richfaces/togglePanel/src/main/templates/toggleControl.jspx	2007-04-09 23:46:48 UTC (rev 332)
+++ trunk/richfaces/togglePanel/src/main/templates/toggleControl.jspx	2007-04-10 10:59:51 UTC (rev 333)
@@ -20,5 +20,9 @@
 				    onclick="#{this:getOnClick(context,component)}; return false;"
                                     
 				    class="dr-tglctrl rich-tglctrl #{component.attributes['styleClass']}"
-                         >#{component.attributes['value']}<vcp:body/></a>
+                         >#{component.attributes['value']}            
+                         <vcp:body>
+ 		                    <f:call name="renderChildren" />
+                         </vcp:body>
+</a>
 </f:root>
\ No newline at end of file




More information about the richfaces-svn-commits mailing list