ADF的scope获取方式

来源:互联网 发布:iphone如何投屏到mac 编辑:程序博客网 时间:2024/06/04 19:08

import oracle.adf.share.ADFContext;

import oracle.adf.view.rich.context.AdfFacesContext;

 

ADFContext.getCurrent().getApplicationScope();

ADFContext.getCurrent().getSessionScope();

AdfFacesContext.getCurrentInstance().getPageFlowScope();           

ADFContext.getCurrent().getRequestScope();

ADFContext.getCurrent().getViewScope();

 

 

Map<String, Object> applicationScope = ADFContext.getCurrent().getApplicationScope();

Map sessionScope = ADFContext.getCurrent().getSessionScope();

Map<String, Object> flowScope = AdfFacesContext.getCurrentInstance().getPageFlowScope();

Map<String, Object> map = AdfFacesContext.getCurrentInstance().getViewScope();

Map requestScope = ADFContext.getCurrent().getRequestScope();

Map<String, Object> scope = ADFContext.getCurrent().getViewScope();



注意:
Map<String, Object> flowScope =AdfFacesContext.getCurrentInstance().getPageFlowScope();
获取对象后,也可以赋值。
flowScope.put('testname','testvalue');
也可以获取存放在对象中的值
String test=flowScope.get('testname').toString();
0 0
原创粉丝点击