when and where is createContent called
and is when where called
2023-09-14 09:02:42 时间
Created by Jerry Wang, last modified on Aug 07, 2014
- initCompositeSupport
- Support
- Composite
- onControllerConnected
- oController
- createId
- byId
- –
- runWithPreprocessors
- Preprocessors
- applySettings
Trigger point为Js view的初始化:
Callstack1: Js view instance 执行initCompositeSupport操作:
Callstack2: this指向JS view,this.oController指向对应的controller instance:
Callstack3: 在onControllerConnected方法内,执行runWithPreprocessors. t指向JS view instance。
Callstack4: 执行传入的function f. Function f 会执行JS view instance的applySettings方法,其输入参数为createContent执行的返回结果。
![](https://user-images.githubusercontent.com/5669954/27391976-a80ba74c-56a5-11e7-8c00-bbfa6e07dffc.png)
于是view的createContent方法被触发:
![](https://user-images.githubusercontent.com/5669954/27391974-a80835da-56a5-11e7-8082-3b05c71e6f0d.png)
![](https://user-images.githubusercontent.com/5669954/61616089-2a87e180-ac9a-11e9-861d-c29c2cf897af.png)
相关文章
- Database 'xxx' cannot be upgraded because it is read-only or has read-only file Make the database or files writeable, and rerun recovery.
- [Python] Optimizing code with numpy intersect1d, and Set
- [TypeScript] Interface and Class
- luarocks install with lua5.1 and luajit to install lapis
- What's the best SOAP client library for Python, and where is the documentation for it?[转]
- [Cloud Architect] 1. Design for Availability, Reliability, and Resiliency
- [Javascript] Check both prop exists and value is valid
- [CSS] Specify grid columns, rows, and areas at once with the grid-template shorthand
- [CSS] Get up and running with CSS Grid Layout
- [Now] Configure secrets and environment variables with Zeit’s Now
- [TypeScript] Installing TypeScript and Running the TypeScript Compiler (tsc)
- [Javascript] Adding Shapes to Maps with Leaflet and GeoJSON
- UserWarning: XXX is writable by group/others and vulnerable to attack when used with get_resource_filename.
- where is os type and version determined for a ui5 html
- where is os type and version determined for a ui5 html
- when and where is gt_cache_in_memory filled
- when and where is beanDefinitionNames filled
- Atitit..文件上传组件选型and最佳实践总结(2)----断点续传
- 【38.24%】【codeforces 621E】 Wet Shark and Blocks
- 成功解决ValueError: Data is not binary and pos_label is not specified
- 成功解决TypeError: Cannot compare types ‘ndarray(dtype=float64)‘ and ‘str‘
- 成功解决Cannot uninstall 'pywin32'. It is a distutils installed project and thus we cannot accurately de
- 已解决WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is bein
- 已解决FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future
- WARNING: The scripts f2py, f2py3 and f2py3.9 are installed in ‘/home/ubuntu/.local/bin‘ which is no
- Legacy autograd function with non-static forward method is deprecated and will be removed in 1.3.
- 解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.
- 在WPF中的ItemsControl中使用事件和命令(Using events and Commands within ItemsControl in WPF)