how to use PrimeFaces idleMonitor?
I'd like to use PrimeFaces IdleMonitor as described in call a process event from the idlemonitor tag. when I do
<p:idleMonitor timeout="5000" onidle="#{logic.onIdle}" />
I get the following link, error :
javax.el.PropertyNotFoundException: Property 'onIdle' not found on type com.sun.proxy.$Proxy118
I can't seem to get access to logic... inside the idelMonitor but I can't get if I open a dialog and press a button, it to fire up works; but I want to call the logic.method before the session user has to click any button. is expiring. I set the timout to 3 minutes in the Designer for testing but no result.
Is it possible at all to use the IdleMonitor tag in HtmlDialogs?
http://stackoverflow.com/questions/19097565/alert-when-the-session-expires-with-primefaces
possible.
here is the dialog.
<p:dialog widgetVar="idleDialog" modal="true"
header="Période d'inactivité écoulée"
style="width: 300px">
<p:panelGrid columns="1">
<p:outputLabel>
<p>Cette page est demeurée inactive pour plus de 20 minutes. </p>
<p>Votre demande a été enregistrée et conservée dans vos tâches.</p>
</p:outputLabel>
<p:commandButton actionListener="#{logic.onIdle}" onclick="PF('idleDialog').hide()"
value="#{ivy.cms.co('/label/demande/continue')}" />
</p:panelGrid>
</p:dialog>