Request A Demo
Back to All Blog Articles

af:poll not working

ADF Faces provides poll component, it’s description & sample use cases are documented on Tag Documentation as shown below.

The poll component delivers PollEvents to the server at fixed intervals. This can be used either for steady updates, or to deliver a heartbeat to keep a user logged in, or to warn a user about to be logged out (for some examples).

One classic use of Poll component would be to keep User Session active as long as browser window is open. In this case, you will set Poll Interval (interval) and dummy pollListener. Poll Listener can be empty method, it does not have to do anything. Poll Interval should be less than HTTP Session Timeout. HTTP Session Timeout is setup in web.xml.

Such use of Poll component fails to keep User Session active, after upgrading from 11.1.1.3. This is due to new attribute timeout for af:poll, value for which defaults to 10 minutes (This property is added with 11.1.1.4). So if user does not perform any activity on Keyboard or Mouse for 10 minutes, Poll component will stop delivering any Poll Events. If you are using af:poll to keep User Session (by sending regular heartbeat) active, add timeout property to af:poll with very high value to avoid stopping Poll Events.

Related Resources

Webinar Recap: Simplify and Enable DevOps for Oracle Fusion Cloud Applications 

In the realm of Oracle Fusion Applications, encompassing ERP, HCM, SCM, CX Sales and CX Service, the management of configurations ...
Forrester Wave ISDP 2023

Flexagon recognized in the Forrester Wave ISDP

Flexagon Recognized in the Forrester Wave: Integrated Software Delivery Platforms, Q2 2023 We are delighted to share that Flexagon has ...

Deploy Einstein GPT Generated Components with FlexDeploy

The TrailblazerDX Main Keynote was a highly anticipated event, and it did not disappoint. The biggest news coming out of ...

Join DevOps leaders across the globe who receive analysis, tips, and trends in their inbox