我们可以将整个 bean 放在 sessionScope 中。
<managed-bean>
<managed-bean-name>managedBeanList</managed-bean-name>
<managed-bean-class>com.org.SomeMBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
但是有什么像我们只能放在a field of that managed bean
sessionScope 中的吗?
像...
public class SomeMBean{
public String mySessionScopeVariable; // Is there any way only this field will be in sessionscope continusly and not whole bean.
//getter setter of that variable.
}