关于task flow和object scope
来源:互联网 发布:大数据英语怎么说 编辑:程序博客网 时间:2024/06/06 10:08
我们在设计开发一个新的页面的时候,managed bean选择何种scope更适合业务逻辑?何种scope下managed bean中的变量会随着页面一起刷新?希望下面的这段话能给你点启示。
When determining what scope to use for variables within a task flow, you should use any of the scope options other than application or session scope. These two scopes will persist objects in memory beyond the life of the task flow and therefore compromise the encapsulation and reusable aspects of a task flow. In addition, application and session scopes may keep objects in memory longer than needed, causing unneeded overhead.
When you need to pass data values between activities within a task flow, you should use page flow scope. View scope is recommended for variables that are needed only within the current view activity, not across view activities. Request scope should be used when the scope does not need to persist longer than the current request. It is the only scope that should be used to store UI component information. Lastly, backing bean scope must be used for backing beans in your task flow if there is a possibility that your task flow will appear in two region components or declarative components on the same page and you would like to achieve region instance isolations.
- 关于task flow和object scope
- 关于task flow和object scope
- 关于scope和createDelegate()
- 在Eclipse中使用ADF Faces和ADF task flow
- SSIS Custom Data Flow Task
- ADF Task Flow学习--part3
- ExtJS中关于scope和createDelegate()
- 关于Oracle ADF 11g的传值给bounded task flow
- 关于Oracle ADF 11g的传值给bounded task flow(二)
- 使用ADF Controller 之一:使用Bounded Task Flow、Region和Router
- 关于map task和reduce task的个数
- 关于Android 中的Activity,Application和Task
- 关于Task的一点思考和建议
- 关于 Spring task和线程池
- ADF: ADF Task Flow学习--part1
- ADF: ADF Task Flow学习--part2
- ADF: ADF Task Flow学习--part3
- ADF: ADF Task Flow学习--part1
- Asp.Net的Application特性
- SET ANSI_NULLS ON
- 浅尝Kivy
- java中如何在JFrame中添加背景图片
- xml和bean间相互转换
- 关于task flow和object scope
- mmap的真正作用
- 关于一些对servlet的认识和了解
- vcdsys错误解决
- Project manage_maven3安装,配置
- 面试心得(简历书写)
- ADF中调用PLSQL存储过程和函数
- UVA - 10118 Free Candies
- 网络赛长春赛区1004 数论,概率