on 07-01-2008 4:53 PM
Hi everybody
I am calling a component interface controller method from within the wdDoInit of a view controller to retrieve some parameters to control startup procedures.
It happens that the 'child' component instance has not been created at startup yet, so that an exception is thrown.
I need to do this in viewController.wdDoInit and not elsewhere, how can I achieve it?
Thanks
Vincenzo
Hi Vincenzo,
There r 2 ways to achieve this.
1. While adding the dc as used dc, select the life cycle as framework controlled. In that case framework takes care of creating the instance when its needed.
2. If u select life cycle as manual, u need to create the instance manually in component controllers wdDoInit() method.
wdThis.wd<used component conteoller>.createComponent();
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.