[richfaces-issues] [JBoss JIRA] Updated: (RF-10974) a4:poll data being called twice
Martin Sadowski (JIRA)
jira-events at lists.jboss.org
Fri May 6 12:27:19 EDT 2011
[ https://issues.jboss.org/browse/RF-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sadowski updated RF-10974:
---------------------------------
Description:
Bean:
{code}
@ManagedBean
@SessionScoped
public class TestBean {
int i = 0;
public String getPollData() {
System.out.println("getPollData()");
return "" + i++;
}
}
{code}
test.xhtml:
{code}
<a4j:poll interval="10000" data="#{testBean.pollData}" oncomplete="alert(event.data);"/>
{code}
Result:
{code}
1
3
5
...
{code}
was:
Bean:
@ManagedBean
@SessionScoped
public class TestBean {
int i = 0;
public String getPollData() {
System.out.println("getPollData()");
return "" + i++;
}
}
test.xhtml:
<a4j:poll interval="10000" data="#{testBean.pollData}" oncomplete="alert(event.data);"/>
Result:
1
3
5
...
-> Twice every polling cycle.
> a4:poll data being called twice
> -------------------------------
>
> Key: RF-10974
> URL: https://issues.jboss.org/browse/RF-10974
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.0.0.Final
> Environment: Tomcat 7.0.12
> Reporter: Martin Sadowski
>
> Bean:
> {code}
> @ManagedBean
> @SessionScoped
> public class TestBean {
>
> int i = 0;
>
> public String getPollData() {
> System.out.println("getPollData()");
> return "" + i++;
> }
> }
> {code}
> test.xhtml:
> {code}
> <a4j:poll interval="10000" data="#{testBean.pollData}" oncomplete="alert(event.data);"/>
> {code}
> Result:
> {code}
> 1
> 3
> 5
> ...
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list