[英]JBoss Seam - ViewExpiredException
I currently have a web application which acts as a Portal. 我目前有一个充当门户的Web应用程序。 Users log onto the Portal and are shown a list of services.
用户登录到门户网站并显示服务列表。 To view a service, an iframe is populated in the same page pointing to the URL of the service.
要查看服务,请在指向该服务URL的同一页面中填充一个iframe。 All applications are Seam 2.1.1GA on JBoss 4.2.2GA AS.
所有应用程序都是JBoss 4.2.2GA AS上的Seam 2.1.1GA。
If a user loads up Service A, interacts with it, then switches using the menu in the Portal to Service B, interacts with it, then switches back to Service A and goes to interact, they get a ViewExpiredException (it's not actually shown to the user, I've got some code to display an error message rather than redirect etc.) 如果用户加载了服务A,并与之交互,然后使用门户中的菜单切换到服务B,与之交互,然后切换回服务A,然后进行交互,则他们会收到ViewExpiredException(实际上并未显示给用户,我有一些代码来显示错误消息,而不是重定向等。)
I have tried using 我尝试使用
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
in web.xml. 在web.xml中。 This gets rid of the ViewExpiredException, but throws an error on the AS stating that a transaction is required, or it can't join an existing transaction.
这摆脱了ViewExpiredException,但在AS上引发错误,指出需要事务,否则它无法加入现有事务。
The bean we use at the backend has a method annotated @Begin(join=true). 我们在后端使用的bean有一个@Begin(join = true)注释的方法。 I've tried removing join=true but that throws more errors.
我试过删除join = true,但这会引发更多错误。
I'm totally stumped, and have been scratching my head for ages! 我完全陷入了困境,多年来一直挠头! Any ideas?
有任何想法吗?
Many thanks, 非常感谢,
Chris 克里斯
在Seam社区站点上有一些与此相关的信息,可能会对您有所帮助: http : //seamframework.org/Community/ViewExpiredExceptionIssues
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.