a4j:poll only fires onces with RF 3.2.0
cdollar393 Apr 4, 2008 11:27 AMI've been using RF 3.1.x for quite some time and today am testing an update to 3.2.0. My project makes use of a number of a4j:push and a4j:pull to keep track of session data and warn a user of a session that is about to expire. This has worked fine with RF 3.1.4, but with 3.2.0 it seems that my a4j:poll fires one time, and then stops.
Here is the poll:
<!-- poll every 60sec --> <a4j:poll id="poll" interval="60000" enabled="true" limitToList="true" reRender="dashboard, updateStamp" action="#{user.updateStats}"/>
I can see where the updateStats() method is called after the first 60sec, but not again afterwards. I've changed the interval, but that hasn't helped.
Checking the ajax log I see:
debug[9:16:34,737]: Header Ajax-Expired not found, search in <meta> debug[9:16:34,738]: search for elements by name 'meta' in element #document debug[9:16:34,745]: getElementsByTagName found 2 debug[9:16:34,746]: Find <meta name='Ajax-Update-Ids' content='dashboardForm:poll,dashboardForm:dashboard,dashboardForm:updateStamp,pageFooterForm:j_id2456'> debug[9:16:34,746]: Find <meta name='Ajax-Response' content='true'> debug[9:16:34,747]: Header Ajax-Update-Ids not found, search in <meta> debug[9:16:34,748]: search for elements by name 'meta' in element #document debug[9:16:34,753]: getElementsByTagName found 2 debug[9:16:34,754]: Find <meta name='Ajax-Update-Ids' content='dashboardForm:poll,dashboardForm:dashboard,dashboardForm:updateStamp,pageFooterForm:j_id2456'> debug[9:16:34,756]: search for elements by name 'script' in element #document debug[9:16:34,764]: getElementsByTagName found 3 debug[9:16:34,765]: <script> in response with src=/PermitManagerWeb/a4j_3_2_0-SNAPSHOT/org/ajax4jsf/framework.pack.js.jsf debug[9:16:34,766]: Such element exist in document debug[9:16:34,766]: <script> in response with src=/PermitManagerWeb/a4j_3_2_0-SNAPSHOT/org/richfaces/ui.pack.js.jsf debug[9:16:34,767]: Such element exist in document debug[9:16:34,768]: search for elements by name 'link' in element #document debug[9:16:34,776]: getElementsByTagName found 1 debug[9:16:34,778]: <link> in response with src=/PermitManagerWeb/a4j_3_2_0-SNAPSHOTorg/richfaces/skin-ext-classes.xcss/DATB/eAETWfO1GAAEtQIp.jsf debug[9:16:34,779]: Such element exist in document debug[9:16:34,779]: Update page part from call parameter for ID dashboardForm:dashboard debug[9:16:34,780]: call getElementById for id= dashboardForm:dashboard debug[9:16:34,796]: Replace content of node by replaceChild() debug[9:16:34,803]: search for elements by name 'script' in element table debug[9:16:34,811]: getElementsByTagName found 0 debug[9:16:34,812]: Scripts in updated part count : 0 debug[9:16:34,813]: Update part of page for Id: dashboardForm:dashboard successful debug[9:16:34,814]: Update page part from call parameter for ID dashboardForm:updateStamp debug[9:16:34,814]: call getElementById for id= dashboardForm:updateStamp debug[9:16:34,816]: Replace content of node by replaceChild() debug[9:16:34,817]: search for elements by name 'script' in element span debug[9:16:34,824]: getElementsByTagName found 0 debug[9:16:34,825]: Scripts in updated part count : 0 debug[9:16:34,826]: call getElementById for id= org.ajax4jsf.oncomplete debug[9:16:34,827]: Update part of page for Id: dashboardForm:updateStamp successful debug[9:16:34,828]: call getElementById for id= ajax-view-state debug[9:16:34,828]: Hidden JSF state fields: [object HTMLSpanElement] debug[9:16:34,829]: Namespace for hidden view-state input fields is undefined debug[9:16:34,830]: search for elements by name 'input' in element span debug[9:16:34,835]: getElementsByTagName found 1 debug[9:16:34,837]: Replace value for inputs: 31 by new values: 1 debug[9:16:34,837]: Input in response: javax.faces.ViewState debug[9:16:34,838]: Found same input on page with type: hidden debug[9:16:34,839]: Found same input on page with type: hidden debug[9:16:34,840]: Found same input on page with type: hidden debug[9:16:34,841]: Found same input on page with type: hidden debug[9:16:34,842]: Found same input on page with type: hidden debug[9:16:34,844]: Found same input on page with type: hidden debug[9:16:34,845]: Found same input on page with type: hidden debug[9:16:34,846]: search for elements by name 'INPUT' in element span debug[9:16:34,851]: getElementsByTagName found 0 debug[9:16:34,852]: Replace value for inputs: 31 by new values: 0 debug[9:16:34,853]: call getElementById for id= _A4J.AJAX.focus debug[9:16:34,854]: No focus information in response
Anyone have an idea as to what the problem might be?
Thanks!
Chris