Author: nbelaevski
Date: 2010-05-09 16:51:07 -0400 (Sun, 09 May 2010)
New Revision: 16944
Modified:
root/ui/trunk/components/core/src/main/java/org/richfaces/component/AbstractPush.java
Log:
a4j:push fix - component should be enabled by default
Modified:
root/ui/trunk/components/core/src/main/java/org/richfaces/component/AbstractPush.java
===================================================================
---
root/ui/trunk/components/core/src/main/java/org/richfaces/component/AbstractPush.java 2010-05-09
20:46:47 UTC (rev 16943)
+++
root/ui/trunk/components/core/src/main/java/org/richfaces/component/AbstractPush.java 2010-05-09
20:51:07 UTC (rev 16944)
@@ -23,11 +23,8 @@
package org.richfaces.component;
-import org.richfaces.cdk.annotations.Attribute;
-import org.richfaces.cdk.annotations.EventName;
-import org.richfaces.cdk.annotations.JsfComponent;
-import org.richfaces.cdk.annotations.Signature;
-import org.richfaces.cdk.annotations.Tag;
+import java.io.IOException;
+import java.util.EventListener;
import javax.el.MethodExpression;
import javax.faces.component.NamingContainer;
@@ -36,9 +33,13 @@
import javax.faces.event.BehaviorEvent;
import javax.faces.event.FacesEvent;
import javax.servlet.http.HttpSession;
-import java.io.IOException;
-import java.util.EventListener;
+import org.richfaces.cdk.annotations.Attribute;
+import org.richfaces.cdk.annotations.EventName;
+import org.richfaces.cdk.annotations.JsfComponent;
+import org.richfaces.cdk.annotations.Signature;
+import org.richfaces.cdk.annotations.Tag;
+
/**
* Component for periodically call AJAX events on server ( poll actions )
* @author shura
@@ -122,6 +123,7 @@
@Attribute(defaultValue = "1000")
public abstract int getInterval();
+ @Attribute(defaultValue = "true")
public abstract boolean isEnabled();
// TODO what wrong with that name?
Show replies by date