jsf view expired imply session destroyed?

孤街醉人 提交于 2019-12-08 03:37:08

问题


I have a question :

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

Thank you for responding me.


回答1:


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.

See also:

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


来源:https://stackoverflow.com/questions/18056806/jsf-view-expired-imply-session-destroyed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!