hi all,
in order to add some ajax4jsf effects to my application i have to use the a4j:poll tag to refresh just one part of my page.
here is an example with just two outpuText:
<f:view>
<webuijsf:page binding="#{Page1.page1}" id="page1">
<webuijsf:html binding="#{Page1.html1}" id="html1">
<webuijsf:head binding="#{Page1.head1}" id="head1">
<webuijsf:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
</webuijsf:head>
<webuijsf:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
<h:outputText value="salut ceci est un test de ajax4jsf(poll)"/><br/>
<a4j:region>
<h:form>
<a4j:poll limitToList="true" id="poll" reRender="poll,text" action="#{Page1.incrnum}" interval="5000"/>
</h:form>
<h:outputText id="text" value="#{Page1.num}"/>
</a4j:region>
</webuijsf:body>
</webuijsf:html>
</webuijsf:page>
</f:view>
i want just refresh the second outputtext (id="text"). here is my bean method (incrnum)
public void incrnum(){
num++;
}
its just a simple test but the whole page refresh !!
can any body correct this code please. i need it.
thkx all of you