ADF 生命周期阶段差异 [英] ADF lifecycle phases difference

查看:72
本文介绍了ADF 生命周期阶段差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ADF initContext 和 prepareModel 之间的区别,因为两者都是通过执行业务服务准备数据,使其通过绑定容器(Map 对象)可用.

Difference between ADF initContext and prepareModel,since both preparing data by executing buisness service making it available through binding container which is a Map object.

推荐答案

ADF initContext 和 prepareModel,因为两者都是通过执行业务服务来准备数据

ADF initContext and prepareModel,since both preparing data by executing buisness service

这不太正确.initContext 设置了 BindingContext,它确保了 DataBindings.cpx 的内容被初始化并准备好页面的绑定容器.prepareModel 是数据查询的执行点.

This is not quite correct. The initContext sets up the BindingContext, which ensures the content of DataBindings.cpx is initialized and the binding container for the page to be prepared. The prepareModel is an execution point for data queries.

另一个执行点,如Timo 的回答所示,是PrepareRender.但建议保留迭代器默认设置,即延迟",在这种情况下,只有那些具有 UI 依赖性的迭代器才会刷新和查询.

The other execution point, as Timo's answer shows, is PrepareRender. Recommendation though is to keep the iterator default setting, which is "deferred" in which case only those iterators are refreshed and queried that have UI dependency.

这篇关于ADF 生命周期阶段差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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