Author: amarkhel
Date: 2010-09-10 15:01:25 -0400 (Fri, 10 Sep 2010)
New Revision: 19157
Modified:
trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractPoll.java
trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java
Log:
RF-9272
Modified: trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractPoll.java
===================================================================
--- trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractPoll.java 2010-09-10
19:00:58 UTC (rev 19156)
+++ trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractPoll.java 2010-09-10
19:01:25 UTC (rev 19157)
@@ -47,7 +47,19 @@
public static final String TIMER = "timer";
public static final String ON_TIMER = "ontimer";
+
+ public static final String BEGIN = "begin";
+ public static final String ON_BEGIN = "onbegin";
+
+ public static final String COMPLETE = "complete";
+
+ public static final String ON_COMPLETE = "oncomplete";
+
+ public static final String BEFOREDOMUPDATE = "beforedomupdate";
+
+ public static final String ON_BEFOREDOMUPDATE = "onbeforedomupdate";
+
@Attribute(defaultValue = "1000")
public abstract int getInterval();
Modified:
trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java
===================================================================
---
trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java 2010-09-10
19:00:58 UTC (rev 19156)
+++
trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java 2010-09-10
19:01:25 UTC (rev 19157)
@@ -95,6 +95,12 @@
HandlersChain handlersChain = new HandlersChain(context, poll);
handlersChain.addInlineHandlerFromAttribute(AbstractPoll.ON_TIMER);
handlersChain.addBehaviors(AbstractPoll.TIMER);
+ handlersChain.addInlineHandlerFromAttribute(AbstractPoll.ON_BEGIN);
+ handlersChain.addBehaviors(AbstractPoll.BEGIN);
+ handlersChain.addInlineHandlerFromAttribute(AbstractPoll.ON_COMPLETE);
+ handlersChain.addBehaviors(AbstractPoll.COMPLETE);
+
handlersChain.addInlineHandlerFromAttribute(AbstractPoll.ON_BEFOREDOMUPDATE);
+ handlersChain.addBehaviors(AbstractPoll.BEFOREDOMUPDATE);
handlersChain.addAjaxSubmitFunction();
String handler = handlersChain.toScript();
Show replies by date