Session Timer
The jp:sessionTime can be used to show the remaining time of the session, values are in seconds:
- timeout: Need to correspond to the session timeout defined in WEB-INF/web.xml .
- warning: At this time a warning (growl) message is shown.
<jp:sessionTimer timeout="70"/>
<h:form id="fAjax">
<p:commandButton value="CLICK" actionListener="#{sessionTimerBean.ajax()}"/>
</h:form>