IdleMonitor IdleMonitor tracks user actions and invokes corresponding events when user goes idle after a specified time and becomes active again.
Stay idle on this page for 5 seconds to view the demo.
<h:form>
    <p:growl id="messages" showDetail="true" sticky="true" />

    <p:idleMonitor timeout="5000">
        <p:ajax event="idle" listener="#{idleMonitorView.onIdle}" update="messages" />
        <p:ajax event="active" listener="#{idleMonitorView.onActive}" update="messages" />
    </p:idleMonitor>
</h:form>
                
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.2-SNAPSHOT on Mojarra-2.3.2.