我有一个视图范围的托管 bean,其托管属性绑定到查询字符串参数。JSF 给了我一个熟悉的例外:
javax.faces.FacesException:
Property reset references object in a scope with shorter lifetime than the target scope session
例如:
<managed-bean>
<managed-bean-name>userBean</managed-bean-name>
<managed-bean-class>project.UserBean</managed-bean-class>
<managed-bean-scope>view</managed-bean-scope>
<managed-property>
<property-name>reset</property-name>
<value>#{param['reset']}}</value>
</managed-property>
</managed-bean>
有什么办法解决这个问题吗?