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.
    <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" />
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.2 on Mojarra-2.3.2.