Author: nbelaevski
Date: 2010-10-04 13:04:35 -0400 (Mon, 04 Oct 2010)
New Revision: 19431
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
trunk/ui/output/ui/src/main/resources/META-INF/pn.faces-config.xml
Log:
https://jira.jboss.org/browse/RF-9397
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java 2010-10-04
16:06:49 UTC (rev 19430)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java 2010-10-04
17:04:35 UTC (rev 19431)
@@ -22,23 +22,18 @@
package org.richfaces.renderkit.html;
-import org.richfaces.component.behavior.ToggleControl;
-
import javax.faces.application.ResourceDependencies;
import javax.faces.application.ResourceDependency;
import javax.faces.component.behavior.ClientBehavior;
import javax.faces.component.behavior.ClientBehaviorContext;
import javax.faces.render.ClientBehaviorRenderer;
-import javax.faces.render.FacesBehaviorRenderer;
-import javax.faces.render.RenderKitFactory;
+import org.richfaces.component.behavior.ToggleControl;
+
/**
* @author akolonitsky
*
*/
-@FacesBehaviorRenderer(
- rendererType = "org.richfaces.component.behavior.ToggleControl",
- renderKitId = RenderKitFactory.HTML_BASIC_RENDER_KIT)
@ResourceDependencies({
@ResourceDependency(name = "jquery.js"),
@ResourceDependency(name = "richfaces.js") })
Modified: trunk/ui/output/ui/src/main/resources/META-INF/pn.faces-config.xml
===================================================================
--- trunk/ui/output/ui/src/main/resources/META-INF/pn.faces-config.xml 2010-10-04 16:06:49
UTC (rev 19430)
+++ trunk/ui/output/ui/src/main/resources/META-INF/pn.faces-config.xml 2010-10-04 17:04:35
UTC (rev 19431)
@@ -726,6 +726,11 @@
<cdk:renders-children>false</cdk:renders-children>
</renderer-extension>
</renderer>
+
+ <client-behavior-renderer>
+
<client-behavior-renderer-type>org.richfaces.component.behavior.ToggleControl</client-behavior-renderer-type>
+
<client-behavior-renderer-class>org.richfaces.renderkit.html.ToggleControlRenderer</client-behavior-renderer-class>
+ </client-behavior-renderer>
</render-kit>
<faces-config-extension>