-
1. Re: Problem in polling
yyq2009 Dec 18, 2009 2:20 AM (in response to jsfgeeks)Hi, jsf geeks, I think you should do it like this:
<a4j:region>
<h:form>
<a4j:poll id="poll" interval="3000" action="#{poll_test.test_polling}" enabled="true" reRender="poll,test">
</a4j:poll>
<h:inputText id="test" binding="#{poll_test.test}" value="#{poll_test.txt_value}" style="left: 50px; top: 100px; position: absolute"/>
</h:form>
</a4j:region>
<h:form id="form1">
<h:outputText value="#{poll_test.txt_value}" style="left: 50px; top: 150px; position: absolute"/>
</h:form>Or
<a4j:region>
<h:form>
<a4j:poll id="poll" interval="3000" enabled="true" reRender="poll,test">
<a4j:support event="oncomplete" action="#{poll_test.test_polling}" reRender="test"/>
</a4j:poll>
<h:inputText id="test" binding="#{poll_test.test}" value="#{poll_test.txt_value}" style="left: 50px; top: 100px; position: absolute"/>
</h:form>
</a4j:region>
<h:form id="form1">
<h:outputText value="#{poll_test.txt_value}" style="left: 50px; top: 150px; position: absolute"/>
</h:form>Maybe it can work for you.
Good luck.
-
2. Re: Problem in polling
jsfgeeks Dec 18, 2009 5:33 AM (in response to yyq2009)Thanks Daniel,
It's working. Cooooooool...
Thanks for your time and reply,
JSF GEEKS