Q:

primefaces - No-activity function

My goal is to create a function, using primefaces and JSP, to capture how long have the user been with no activity in my website. For example, if the user is not using my page for more than 5 minutes, I need send a dialog box telling him that he's disconnected from the website.
Could anyone help me with this issue?

A:

Is this what you're looking for?
It's the 1st Google result for primefaces detect inactivity (for me at least).
There's also been a js-only question about it on here Detecting idle time in JavaScript elegantly the answers to which might suit you.

