-
1. Re: a4j:poll issues, please suggest!
sergeysmirnov Oct 5, 2007 7:09 PM (in response to icai)do not mismatch what is doing on the client side, but what is on the server side.
Your onsubmit code does not make sense as soon as each time it test the condition that was during the rendering, but not the actual one on the server.
To start/stop poling you need to re-render the rich:poll with 'enable' attribute set to true/false. Look at the livedemo code, how it might be done:
http://livedemo.exadel.com/richfaces-demo/richfaces/poll.jsf
If you want to stop polling instantly, you can do it using the javascript API:
A4J.AJAX.StopPoll(); -
2. Re: a4j:poll issues, please suggest!
icai Oct 5, 2007 7:31 PM (in response to icai)A4J.AJAX.StopPoll(); works. But the polling doesn't start second time.
I used following :<a4j:commandButton value="Cancel" action="#{backing_KnowMngmtBean.sendNotification}" oncomplete="stopAllWheel('rtform:form2:sendNotification:sendNotifywheel');" onclick="A4J.AJAX.StopPoll(); showAllWheel('rtform:form2:sendNotification:sendNotifywheel');" immediate="true" >
Please guide. -
3. Re: a4j:poll issues, please suggest!
sergeysmirnov Oct 5, 2007 7:36 PM (in response to icai)Let me repeat:
"To start/stop poling you need to re-render the rich:poll with 'enable' attribute set to true/false. Look at the livedemo code, how it might be done:
http://livedemo.exadel.com/richfaces-demo/richfaces/poll.jsf
" -
4. Re: a4j:poll issues, please suggest!
icai Oct 5, 2007 8:17 PM (in response to icai)Thanks Sergey!
I think I am confident now.