JSF 2.0 - set javax.faces.STATE_SAVING_METHOD on a specific manage bean only

谁都会走 提交于 2019-12-25 12:52:11

问题


In the web.xml, I've the following:

<context-param>
   <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
   <param-value>server</param-value>
</context-param>

This setting effects all jsf managed beans in my app. I've one particular bean that I want the state to be client. Is there a way to have only this one bean with set with client as STATE_SAVING_METHOD and the rest with server?


回答1:


It appears that the answer to your question is 'no'. It was considered as a feature but ultimately was not implemented.

See: JAVASERVERFACES_SPEC_PUBLIC-1056



来源:https://stackoverflow.com/questions/42427865/jsf-2-0-set-javax-faces-state-saving-method-on-a-specific-manage-bean-only

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