This content has been marked as final.
Show 2 replies
-
1. Re: onExpired dont work yet with myfaces 1.2.2
ilya_shaikovsky Sep 1, 2008 6:03 AM (in response to lmk)are you sure you using the same that Alexandr adviced in jira?
-
2. Re: onExpired dont work yet with myfaces 1.2.2
lmk Sep 1, 2008 6:27 AM (in response to lmk)yes of course!
I add a context param and this for test!<a4j:region> <script type="text/javascript"> A4J.AJAX.onError = function(req,status,message){ window.alert("Custom onError handler "+message); } A4J.AJAX.onExpired = function(loc,expiredMsg){ if(window.confirm("Custom onExpired handler "+expiredMsg+" for a location: "+loc)){ return loc; } else { return false; } } </script> <a4j:form> <a4j:poll id="sessioncheck" interval="121000" reRender="sessioncheck" /> </a4j:form> </a4j:region>