[
https://issues.jboss.org/browse/RF-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604779#comment-12604779
]
Jay Balunas commented on RF-10974:
----------------------------------
It is not uncommon for some attribute calls like "data" to call multiple times
through the lifecycle. This is common to JSF not just RichFaces. These should
be used as pure "getters" not for doing lookups, or state change.
> a4j: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
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues