How can I do it?
I used
Code: Select all
<script type="text/javascript">
window.onbeforeunload = function()
{
exitFunc();
alert("test 1");
}
</script>
Code: Select all
<h:form id="exitForm">
<p:remoteCommand name="exitFunc" actionListener="#{testBen.outFunc}" />
</h:form>
can any body guide me?