jsf视图过期意味着会话被破坏了吗

jsf视图过期意味着会话被破坏了吗

本文介绍了jsf视图过期意味着会话被破坏了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题:

当jsf视图过期时,我们可以确定该会话已被破坏并且其所有属性都被删除了吗?

When jsf view has expired, can we be sure that the session is destroyed and all its attributes are removed ?

感谢您的回复.

推荐答案

否.如果javax.faces.STATE_SAVING_METHOD设置为其默认值server,则相反.然后,会话销毁确实意味着会话中到目前为止保存的所有视图都将过期.但是,如果状态保存设置为client,则视图永不过期.

No. It's the other way round, provided that javax.faces.STATE_SAVING_METHOD is set to its default value of server. Then a session destroy indeed implies an expireation of all views saved so far in the session. If the state saving is however set to client, then the view never expires.

  • javax.faces.application.ViewExpiredException: View could not be restored
  • com.sun.faces.numberOfViewsInSession vs com.sun.faces.numberOfLogicalViews

这篇关于jsf视图过期意味着会话被破坏了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 09:47