Author: abelevich
Date: 2010-11-10 10:00:38 -0500 (Wed, 10 Nov 2010)
New Revision: 20012
Modified:
trunk/ui/output/ui/pom.xml
trunk/ui/output/ui/src/main/java/org/richfaces/component/behavior/ToggleControl.java
trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml
Log:
https://jira.jboss.org/browse/RF-9720
Modified: trunk/ui/output/ui/pom.xml
===================================================================
--- trunk/ui/output/ui/pom.xml 2010-11-10 13:23:20 UTC (rev 20011)
+++ trunk/ui/output/ui/pom.xml 2010-11-10 15:00:38 UTC (rev 20012)
@@ -56,11 +56,14 @@
<artifactId>richfaces-core-api</artifactId>
</dependency>
<dependency>
+ <groupId>org.richfaces.core</groupId>
+ <artifactId>richfaces-core-impl</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.richfaces.ui.common</groupId>
<artifactId>richfaces-ui-common-ui</artifactId>
</dependency>
<dependency>
- <!-- todo remove this dependency -->
<groupId>org.richfaces.ui.core</groupId>
<artifactId>richfaces-ui-core-ui</artifactId>
</dependency>
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/behavior/ToggleControl.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/behavior/ToggleControl.java 2010-11-10
13:23:20 UTC (rev 20011)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/behavior/ToggleControl.java 2010-11-10
15:00:38 UTC (rev 20012)
@@ -28,6 +28,9 @@
import javax.faces.context.FacesContext;
import org.ajax4jsf.component.behavior.ClientBehavior;
+import org.richfaces.cdk.annotations.JsfBehavior;
+import org.richfaces.cdk.annotations.Tag;
+import org.richfaces.cdk.annotations.TagType;
import org.richfaces.component.AbstractTogglePanel;
import org.richfaces.renderkit.util.RendererUtils;
@@ -35,6 +38,8 @@
* @author akolonitsky
*
*/
+
+@JsfBehavior(id = "org.richfaces.behavior.ToggleControl", tag = @Tag(name =
"toggleControl", handler =
"org.richfaces.view.facelets.html.CustomBehaviorHandler", type =
TagType.Facelets))
public class ToggleControl extends ClientBehavior {
public static final String BEHAVIOR_ID =
"org.richfaces.component.behavior.ToggleControl";
@@ -127,12 +132,12 @@
@Override
public void setLiteralAttribute(String name, Object value) {
-// if (compare(PropertyKeys.operation, name)) {
-// setOperation((String) value);
-// } else if (compare(PropertyKeys.target, name)) {
-// setTargetItem((String) value);
-// } else if (compare(PropertyKeys.selector, name)) {
-// setTargetPanel((String) value);
-// }
+ if (compare(PropertyKeys.targetItem, name)) {
+ setTargetItem((String) value);
+ } else if (compare(PropertyKeys.targetPanel, name)) {
+ setTargetPanel((String) value);
+ } else if (compare(PropertyKeys.disableDefault, name)) {
+ setDisableDefault((Boolean)value);
+ }
}
}
Modified: trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml
===================================================================
--- trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml 2010-11-10 13:23:20 UTC
(rev 20011)
+++ trunk/ui/output/ui/src/main/resources/META-INF/pn.taglib.xml 2010-11-10 15:00:38 UTC
(rev 20012)
@@ -11,6 +11,7 @@
<tag-name>toggleControl</tag-name>
<behavior>
<behavior-id>org.richfaces.component.behavior.ToggleControl</behavior-id>
+
<handler-class>org.richfaces.view.facelets.html.CustomBehaviorHandler</handler-class>
</behavior>
</tag>
<tag>