If the session timeout is 15 minutes, you can simply set up a Javascript call (using the method setTimeout) that will display a popup. If the user clicks on one link, the Javascript call will be dropped, so the pop-up will only be displayed if the user remains on the same page for at least 15 minutes.
You can try something like this:
<a4j:outputPanel ajaxRendered="true">
<script type="text/javascript">
setTimeout("Richfaces.showModalPanel('xxx');", 900000);
</script>
</a4j:outputPanel>
Explanations:
Javascript- <a4j:outputPanel>, ajaxRendered, true. , - Javascript , Ajax.
- 15 (900000 ), .
( modalPanel) , Facelets. ...