This content has been marked as final.
Show 4 replies
-
1. Re: View State could't be restored
ilya_shaikovsky May 18, 2007 8:42 AM (in response to liudan2005)you may redefine onExpired event on the client and define own JS function to be executed.
-
2. Re: View State could't be restored
liudan2005 May 18, 2007 10:10 PM (in response to liudan2005)It doesn't seem to work. Here is my code:
<a:poll interval="60000" enabled="true" action="#{myBean.doAlive}" ajaxSingle="false" onExpired="alert('Expired');"/>
I still get "View State could't be restored - reload page". Any idea? -
3. Re: View State could't be restored
alexsmirnov May 21, 2007 2:28 PM (in response to liudan2005)Try to use :
<script type="text/javaScript"> A4J.AJAX.onExpired= function(){ return "/myApp/home.jsf"; } </script> <a:poll interval="60000" enabled="true" action="#{myBean.doAlive}" ajaxSingle="false" />
-
4. Re: View State could't be restored
liudan2005 May 22, 2007 8:44 AM (in response to liudan2005)It works now. Thanks a lot.