I'm working with a project that use Spring Security, Spring bean, JSF, PrimeFaces and Hibernate in combination.
In the homepage, I use poll to automatically get newest data after every 10 seconds.
<h:form>
<p:poll interval="10"
listener="#{mailBean.refreshMail}"
update=":list-email"/>
</h:form>
The problem is after I log-in to the homepage, I open the homepage in another tab and in that tab, I click log-out and it redirect to the log-in page.
Even though the session ends, poll will continue to send ajax request and get response after every 10 seconds.
Then I wait some seconds and click log-in again to go to the homepage but this time it shows the XML content which is the partial response of the Poll.
Here is the image link:
If I refresh the page, it becomes normal again. I don't know why it render view like that.
I've spent a lot of time trying to solve this problem but I couldn't. Please help me out. Thank you.