Javascript 页面重新加载后PrimeFaces ViewExpiredException

Javascript 页面重新加载后PrimeFaces ViewExpiredException,javascript,jsf,primefaces,reload,myfaces,Javascript,Jsf,Primefaces,Reload,Myfaces,我使用包装器PrimeFaces.ajax.AjaxResponse来处理ViewExpiredException(重新加载页面): 但是,有时我在尝试单击站点上调用AJAX请求的任何内容后,会一次又一次地出现此错误: javax.faces.application.ViewExpiredException: /tree.xhtmlNo saved view state could be found for the view identifier: /tree.xhtml at org.

我使用包装器
PrimeFaces.ajax.AjaxResponse
来处理ViewExpiredException(重新加载页面):

但是,有时我在尝试单击站点上调用AJAX请求的任何内容后,会一次又一次地出现此错误:

javax.faces.application.ViewExpiredException: /tree.xhtmlNo saved view state could be found for the view identifier: /tree.xhtml
    at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:128)
我做刷新的方式不对吗?我应该怎么做才能调用全页重新加载,例如在浏览器中单击“重新加载”?我是否需要删除cookies(JSESSIONID、oam.Flash.RENDERMAP.TOKEN)

我正在使用PrimeFaces 3.5,其中MyFaces 2.0.7在WebSphere 7.0上运行。

如果您有许多(>15)个页面/视图/框架在会话中同时打开,那么以下内容可能会很有用

你需要看看:

一,。numberOfViewsInSession:定义支持后退按钮操作的(顶级)视图状态(页面)数

二,。numberOfLogicalViews:定义页面中可以显示的逻辑视图(帧)的数量(每个顶级视图)

一个快速的措施是将这些数字设置为500,看看是否相关 如果它们相关,您可以在以下链接中找到更多信息:

请查看此项,但在以下情况下此项不起作用:1)会话已过期2)应用程序已重新加载
javax.faces.application.ViewExpiredException: /tree.xhtmlNo saved view state could be found for the view identifier: /tree.xhtml
    at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:128)