Using Af:Poll Causes the FacesMessage to Vanish when the Page Refreshes

(Doc ID 1145097.1)

Last updated on AUGUST 18, 2016

Applies to:

Oracle JDeveloper - Version and later
Information in this document applies to any platform.


Process using af:poll to periodically refresh a page using Partial Page Rendering (PPR) to update some component displayed on it.
In the same page, there may be messages displayed using FacesMessage.addMessage using code as this:

FacesMessage message = new FacesMessage(null, "Some message");
fc.addMessage(null, message);

The error message is displayed properly, but message window gets closed automatically when the page is refreshed because of the poll event.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms