JSF 2中的部分状态保存功能 [英] Partial State Saving Feature in JSF 2

查看:93
本文介绍了JSF 2中的部分状态保存功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以解释一下JSF中的部分状态保存功能吗?我曾经使用过JSF 1.2,但是那里没有这个功能.我认为它对JSF 2.0是新的吗?与常规状态保存相比,部分状态保存有什么好处?

Can someone please explain the partial state saving feature in JSF ? I have worked with JSF 1.2 and this feature didn't exist there . I think it is new to JSF 2.0 ? What benefit do we get by partial state saving over regular state saving ?

推荐答案

通过仅在bean上保存修改,它减少了内存使用.默认为true,您可以像下面这样在conf上进行设置;

It provides to less memory usage by saving just modification on bean. Default is true, you can set it on conf like below;

<context-param>
    <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
    <param-value>false</param-value>
</context-param>

这篇关于JSF 2中的部分状态保存功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆